diff --git a/k8s/infra/authellia/Chart.yaml b/k8s/infra/authellia/Chart.yaml index 83433f9..6fae630 100644 --- a/k8s/infra/authellia/Chart.yaml +++ b/k8s/infra/authellia/Chart.yaml @@ -7,3 +7,6 @@ dependencies: - name: authelia repository: https://charts.authelia.com version: "0.8.57" + - name: redis + repository: https://charts.bitnami.com/bitnami + version: "17.9.2" diff --git a/k8s/infra/authellia/templates/secert-authellia.yaml b/k8s/infra/authellia/templates/secert-authellia.yaml index cb62440..5a56d9d 100644 --- a/k8s/infra/authellia/templates/secert-authellia.yaml +++ b/k8s/infra/authellia/templates/secert-authellia.yaml @@ -4,7 +4,7 @@ kind: Secret metadata: name: "{{ .Values.authelia.secret.existingSecret }}" annotations: - secret-generator.v1.mittwald.de/autogenerate: SESSION_ENCRYPTION_KEY + secret-generator.v1.mittwald.de/autogenerate: SESSION_ENCRYPTION_KEY,REDIS_PASSWORD data: dummy_values: "" type: Opaque diff --git a/k8s/infra/authellia/values.yaml b/k8s/infra/authellia/values.yaml index bb1e183..6589118 100644 --- a/k8s/infra/authellia/values.yaml +++ b/k8s/infra/authellia/values.yaml @@ -64,17 +64,71 @@ authelia: storage: key: STORAGE_PASSWORD - value: "" - filename: STORAGE_PASSWORD session: key: SESSION_ENCRYPTION_KEY - value: "" - filename: SESSION_ENCRYPTION_KEY redis: key: REDIS_PASSWORD - value: "" - filename: REDIS_PASSWORD smtp: key: SMTP_PASSWORD - value: "" - filename: SMTP_PASSWORD + +redis: + image: + registry: docker.io + repository: bitnami/redis + tag: 7.0.10-debian-11-r2 + pullPolicy: IfNotPresent + + architecture: replication + auth: + enabled: true + existingSecret: "authelia" + existingSecretPasswordKey: "REDIS_PASSWORD" + usePasswordFiles: false + + master: + count: 1 + resources: + limits: + cpu: 500m + memory: 1Gi + requests: + cpu: 500m + memory: 1Gi + persistence: + enabled: true + size: "8Gi" + storageClass: "" + accessModes: + - ReadWriteOnce + service: + type: ClusterIP + ports: + redis: 6379 + + replica: + replicaCount: 1 + containerPorts: + redis: 6379 + resources: + limits: + cpu: 250m + memory: 256Mi + requests: + cpu: 250m + memory: 256Mi + persistence: + enabled: true + storageClass: "" + accessModes: + - ReadWriteOnce + size: 8Gi + service: + type: ClusterIP + ports: + redis: 6379 + autoscaling: + enabled: true + minReplicas: 1 + maxReplicas: 4 + targetCPU: "80" + targetMemory: "80"