From 5211836b22844b3f8d3e2b9cd20b787c236e3ea2 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 15 Dec 2025 11:54:09 -0600 Subject: [PATCH] replace redis with chart --- clusters/cl01tl/helm/authentik/Chart.lock | 7 ++-- clusters/cl01tl/helm/authentik/Chart.yaml | 3 ++ .../templates/redis-replication.yaml | 32 ------------------- .../authentik/templates/service-monitor.yaml | 19 ----------- clusters/cl01tl/helm/authentik/values.yaml | 8 +++++ 5 files changed, 16 insertions(+), 53 deletions(-) delete mode 100644 clusters/cl01tl/helm/authentik/templates/redis-replication.yaml delete mode 100644 clusters/cl01tl/helm/authentik/templates/service-monitor.yaml diff --git a/clusters/cl01tl/helm/authentik/Chart.lock b/clusters/cl01tl/helm/authentik/Chart.lock index eb6768feb..c11b3e54c 100644 --- a/clusters/cl01tl/helm/authentik/Chart.lock +++ b/clusters/cl01tl/helm/authentik/Chart.lock @@ -8,5 +8,8 @@ dependencies: - name: postgres-cluster repository: oci://harbor.alexlebens.net/helm-charts version: 6.16.1 -digest: sha256:fdd5cc597cf958ca0f6f43dd403915c89c45718eff80920c2d322264dc8b09e1 -generated: "2025-12-11T16:14:14.729827-06:00" +- name: redis-replication + repository: oci://harbor.alexlebens.net/helm-charts + version: 0.5.0 +digest: sha256:f768f09c723564e121f0b441f1fc2ea4affca3654143a91d761526cbfa9ad759 +generated: "2025-12-15T11:53:51.521231-06:00" diff --git a/clusters/cl01tl/helm/authentik/Chart.yaml b/clusters/cl01tl/helm/authentik/Chart.yaml index c4dbb6b50..c39e4e410 100644 --- a/clusters/cl01tl/helm/authentik/Chart.yaml +++ b/clusters/cl01tl/helm/authentik/Chart.yaml @@ -31,5 +31,8 @@ dependencies: alias: postgres-18-cluster version: 6.16.1 repository: oci://harbor.alexlebens.net/helm-charts + - name: redis-replication + version: 0.5.0 + repository: oci://harbor.alexlebens.net/helm-charts icon: https://cdn.jsdelivr.net/gh/selfhst/icons/png/authentik.png appVersion: 2025.10.2 diff --git a/clusters/cl01tl/helm/authentik/templates/redis-replication.yaml b/clusters/cl01tl/helm/authentik/templates/redis-replication.yaml deleted file mode 100644 index 8c5cdda95..000000000 --- a/clusters/cl01tl/helm/authentik/templates/redis-replication.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: redis.redis.opstreelabs.in/v1beta2 -kind: RedisReplication -metadata: - name: redis-replication-authentik - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: redis-replication-authentik - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - clusterSize: 3 - podSecurityContext: - runAsUser: 1000 - fsGroup: 1000 - kubernetesConfig: - image: quay.io/opstree/redis:v8.4.0 - imagePullPolicy: IfNotPresent - resources: - requests: - cpu: 50m - memory: 128Mi - storage: - volumeClaimTemplate: - spec: - storageClassName: ceph-block - accessModes: ["ReadWriteOnce"] - resources: - requests: - storage: 1Gi - redisExporter: - enabled: true - image: quay.io/opstree/redis-exporter:v1.80.1 diff --git a/clusters/cl01tl/helm/authentik/templates/service-monitor.yaml b/clusters/cl01tl/helm/authentik/templates/service-monitor.yaml deleted file mode 100644 index c61f61088..000000000 --- a/clusters/cl01tl/helm/authentik/templates/service-monitor.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: redis-replication-authentik - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: redis-replication-authentik - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/part-of: {{ .Release.Name }} - redis-operator: "true" - env: production -spec: - selector: - matchLabels: - redis_setup_type: replication - endpoints: - - port: redis-exporter - interval: 30s - scrapeTimeout: 10s diff --git a/clusters/cl01tl/helm/authentik/values.yaml b/clusters/cl01tl/helm/authentik/values.yaml index 0c842b65a..e7bc76281 100644 --- a/clusters/cl01tl/helm/authentik/values.yaml +++ b/clusters/cl01tl/helm/authentik/values.yaml @@ -111,3 +111,11 @@ postgres-18-cluster: # immediate: true # schedule: "0 0 4 * * SAT" # backupName: garage-remote +redis-replication: + existingSecret: + enabled: false + redisReplication: + clusterSize: 3 + redisSentinel: + enabled: true + clusterSize: 3