Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local: argo redis deployment #1808

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions k8s/argocd/local/redis.values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
architecture: replication
auth:
enabled: true
existingSecret: redis-password
existingSecretPasswordKey: password
commonConfiguration: |
# Enable AOF https://redis.io/topics/persistence#append-only-file
appendonly yes
# Disable RDB persistence, AOF persistence already enabled.
save ""
# Control memory usage
maxmemory 50mb
maxmemory-policy volatile-lru
# Auto AOF file rewriting
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 60mb
master:
livenessProbe:
enabled: false
persistence:
accessModes:
- ReadWriteOnce
enabled: true
path: /data
size: 1Gi
storageClass: null
subPath: ""
readinessProbe:
enabled: false
resources:
limits:
cpu: 50m
memory: 90Mi
requests:
cpu: 10m
memory: 62Mi
redisPort: 6379
replica:
livenessProbe:
enabled: false
persistence:
accessModes:
- ReadWriteOnce
enabled: true
path: /data
size: 1Gi
storageClass: null
subPath: ""
readinessProbe:
enabled: false
replicaCount: 1
resources:
limits:
cpu: 50m
memory: 90Mi
requests:
cpu: 10m
memory: 60Mi
sentinel:
enabled: false
52 changes: 52 additions & 0 deletions k8s/argocd/production/redis.values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
architecture: replication
auth:
enabled: true
existingSecret: redis-password
existingSecretPasswordKey: password
commonConfiguration: |
# Enable AOF https://redis.io/topics/persistence#append-only-file
appendonly yes
# Disable RDB persistence, AOF persistence already enabled.
save ""
# Control memory usage
maxmemory 75mb
maxmemory-policy volatile-lru
# Auto AOF file rewriting
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 85mb
master:
persistence:
accessModes:
- ReadWriteOnce
enabled: true
path: /data
size: 1Gi
storageClass: premium-rwo
subPath: ""
resources:
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 500m
memory: 500Mi
redisPort: 6379
replica:
persistence:
accessModes:
- ReadWriteOnce
enabled: true
path: /data
size: 1Gi
storageClass: premium-rwo
subPath: ""
replicaCount: 1
resources:
limits:
cpu: null
memory: 250Mi
requests:
cpu: 500m
memory: 250Mi
sentinel:
enabled: false
52 changes: 52 additions & 0 deletions k8s/argocd/staging/redis.values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
architecture: replication
auth:
enabled: true
existingSecret: redis-password
existingSecretPasswordKey: password
commonConfiguration: |
# Enable AOF https://redis.io/topics/persistence#append-only-file
appendonly yes
# Disable RDB persistence, AOF persistence already enabled.
save ""
# Control memory usage
maxmemory 75mb
maxmemory-policy volatile-lru
# Auto AOF file rewriting
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 85mb
master:
persistence:
accessModes:
- ReadWriteOnce
enabled: true
path: /data
size: 1Gi
storageClass: premium-rwo
subPath: ""
resources:
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 500m
memory: 500Mi
redisPort: 6379
replica:
persistence:
accessModes:
- ReadWriteOnce
enabled: true
path: /data
size: 1Gi
storageClass: premium-rwo
subPath: ""
replicaCount: 1
resources:
limits:
cpu: null
memory: 250Mi
requests:
cpu: 500m
memory: 250Mi
sentinel:
enabled: false
16 changes: 8 additions & 8 deletions k8s/helmfile/env/production/argo-cd-base.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ configs:
controller:
resources:
limits:
cpu: 500m
cpu: null
memory: 512Mi
requests:
cpu: 250m
Expand All @@ -51,7 +51,7 @@ controller:
applicationSet:
resources:
limits:
cpu: 100m
cpu: null
memory: 128Mi
requests:
cpu: 100m
Expand All @@ -60,7 +60,7 @@ applicationSet:
dex:
resources:
limits:
cpu: 50m
cpu: null
memory: 64Mi
requests:
cpu: 10m
Expand All @@ -69,7 +69,7 @@ dex:
notifications:
resources:
limits:
cpu: 100m
cpu: null
memory: 128Mi
requests:
cpu: 100m
Expand All @@ -78,7 +78,7 @@ notifications:
redis:
resources:
limits:
cpu: 200m
cpu: null
memory: 128Mi
requests:
cpu: 100m
Expand All @@ -87,16 +87,16 @@ redis:
repoServer:
resources:
limits:
cpu: 50m
memory: 128Mi
cpu: null
memory: 1024Mi
requests:
cpu: 10m
memory: 64Mi

server:
resources:
limits:
cpu: 100m
cpu: null
memory: 128Mi
requests:
cpu: 50m
Expand Down
2 changes: 1 addition & 1 deletion k8s/helmfile/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ releases:
- name: argocd-config
namespace: argocd
chart: wbstack/argocd-config
version: 1.0.2
version: '{{ if eq .Environment.Name "local" }} 1.0.7 {{ else }} 1.0.6 {{ end }}'
<<: *default_release

- name: redirects
Expand Down