diff --git a/clusters/cl01tl/manifests/authentik/RedisReplication-redis-replication-authentik.yaml b/clusters/cl01tl/manifests/authentik/RedisReplication-redis-replication-authentik.yaml index 64f5b5a4b..3f0d92682 100644 --- a/clusters/cl01tl/manifests/authentik/RedisReplication-redis-replication-authentik.yaml +++ b/clusters/cl01tl/manifests/authentik/RedisReplication-redis-replication-authentik.yaml @@ -4,29 +4,33 @@ metadata: name: redis-replication-authentik namespace: authentik labels: + helm.sh/chart: redis-replication-0.5.0 + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: redis-replication-authentik app.kubernetes.io/instance: authentik app.kubernetes.io/part-of: authentik spec: clusterSize: 3 podSecurityContext: - runAsUser: 1000 fsGroup: 1000 + runAsUser: 1000 kubernetesConfig: - image: quay.io/opstree/redis:v8.4.0 + image: "quay.io/opstree/redis:v8.4.0" imagePullPolicy: IfNotPresent resources: requests: - cpu: 50m - memory: 128Mi + cpu: 10m + memory: 32Mi storage: volumeClaimTemplate: spec: - storageClassName: ceph-block - accessModes: ["ReadWriteOnce"] + accessModes: + - ReadWriteOnce resources: requests: storage: 1Gi + storageClassName: ceph-block redisExporter: enabled: true - image: quay.io/opstree/redis-exporter:v1.80.1 + image: "quay.io/opstree/redis-exporter:v1.80.1" diff --git a/clusters/cl01tl/manifests/authentik/RedisSentinel-redis-sentinel-authentik.yaml b/clusters/cl01tl/manifests/authentik/RedisSentinel-redis-sentinel-authentik.yaml new file mode 100644 index 000000000..ea097a7a9 --- /dev/null +++ b/clusters/cl01tl/manifests/authentik/RedisSentinel-redis-sentinel-authentik.yaml @@ -0,0 +1,29 @@ +apiVersion: redis.redis.opstreelabs.in/v1beta2 +kind: RedisSentinel +metadata: + name: redis-sentinel-authentik + namespace: authentik + labels: + helm.sh/chart: redis-replication-0.5.0 + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: redis-sentinel-authentik + app.kubernetes.io/instance: authentik + app.kubernetes.io/part-of: authentik +spec: + clusterSize: 3 + podSecurityContext: + fsGroup: 1000 + runAsUser: 1000 + redisSentinelConfig: + redisReplicationName: redis-replication-authentik + kubernetesConfig: + image: "quay.io/opstree/redis-sentinel:v8.4.0" + imagePullPolicy: IfNotPresent + resources: + requests: + cpu: 10m + memory: 32Mi + redisExporter: + enabled: true + image: "quay.io/opstree/redis-exporter:v1.80.1" diff --git a/clusters/cl01tl/manifests/authentik/ServiceMonitor-redis-replication-authentik.yaml b/clusters/cl01tl/manifests/authentik/ServiceMonitor-redis-replication-authentik.yaml index 852df1ffe..9ee0e8479 100644 --- a/clusters/cl01tl/manifests/authentik/ServiceMonitor-redis-replication-authentik.yaml +++ b/clusters/cl01tl/manifests/authentik/ServiceMonitor-redis-replication-authentik.yaml @@ -4,15 +4,18 @@ metadata: name: redis-replication-authentik namespace: authentik labels: + helm.sh/chart: redis-replication-0.5.0 + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: redis-replication-authentik app.kubernetes.io/instance: authentik app.kubernetes.io/part-of: authentik - redis-operator: "true" - env: production spec: selector: matchLabels: + app: redis-replication-authentik redis_setup_type: replication + role: replication endpoints: - port: redis-exporter interval: 30s diff --git a/clusters/cl01tl/manifests/authentik/ServiceMonitor-redis-sentinel-authentik.yaml b/clusters/cl01tl/manifests/authentik/ServiceMonitor-redis-sentinel-authentik.yaml new file mode 100644 index 000000000..5ff9ea504 --- /dev/null +++ b/clusters/cl01tl/manifests/authentik/ServiceMonitor-redis-sentinel-authentik.yaml @@ -0,0 +1,22 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: redis-sentinel-authentik + namespace: authentik + labels: + helm.sh/chart: redis-replication-0.5.0 + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: redis-sentinel-authentik + app.kubernetes.io/instance: authentik + app.kubernetes.io/part-of: authentik +spec: + selector: + matchLabels: + app: redis-sentinel-authentik + redis_setup_type: sentinel + role: sentinel + endpoints: + - port: sentinel-client + interval: 30s + scrapeTimeout: 10s