diff --git a/k8s/argocd/local/redis-2.values.yaml b/k8s/argocd/local/redis-2.values.yaml new file mode 100644 index 00000000..756b3d22 --- /dev/null +++ b/k8s/argocd/local/redis-2.values.yaml @@ -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 diff --git a/k8s/argocd/production/redis-2.values.yaml b/k8s/argocd/production/redis-2.values.yaml new file mode 100644 index 00000000..f44a2519 --- /dev/null +++ b/k8s/argocd/production/redis-2.values.yaml @@ -0,0 +1,51 @@ +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: + memory: 250Mi + requests: + cpu: 500m + memory: 250Mi +sentinel: + enabled: false diff --git a/k8s/argocd/staging/redis-2.values.yaml b/k8s/argocd/staging/redis-2.values.yaml new file mode 100644 index 00000000..f44a2519 --- /dev/null +++ b/k8s/argocd/staging/redis-2.values.yaml @@ -0,0 +1,51 @@ +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: + memory: 250Mi + requests: + cpu: 500m + memory: 250Mi +sentinel: + enabled: false diff --git a/k8s/helmfile/helmfile.yaml b/k8s/helmfile/helmfile.yaml index f5c992cd..d741e1f1 100644 --- a/k8s/helmfile/helmfile.yaml +++ b/k8s/helmfile/helmfile.yaml @@ -109,7 +109,7 @@ releases: - name: argocd-config namespace: argocd chart: wbstack/argocd-config - version: 1.0.9 + version: '{{ if eq .Environment.Name "production" }} 1.0.9 {{ else }} 1.0.10 {{ end }}' <<: *default_release - name: redirects