--- # Standalone Redis via the ot-container-kit redis-operator that's already # deployed as infra (argocd-apps/infrastructure/redis-operator.yaml) but # currently unused - GitLab's Redis is a hand-rolled StatefulSet instead # (apps/gitlab/manifests/redis-cluster.yaml), not this operator. This is the # first real consumer of it in the repo. # # NOTE: verify this CR against `kubectl explain redis.spec` (or the chart's # CRD source) for the redis-operator 0.15.0 actually deployed before first # apply - the ot-container-kit CRD schema has shifted across versions and # this wasn't checked against a live cluster. apiVersion: generators.external-secrets.io/v1alpha1 kind: Password metadata: name: nextcloud-redis-password namespace: nextcloud spec: length: 32 digits: 5 symbols: 0 noUpper: false allowRepeat: true --- apiVersion: external-secrets.io/v1 kind: ExternalSecret metadata: name: nextcloud-redis-password namespace: nextcloud spec: refreshInterval: "0" # generate once, don't rotate (Redis CR reads this at pod start only) target: name: redis-nextcloud-secret creationPolicy: Owner template: data: password: "{{ .password }}" dataFrom: - sourceRef: generatorRef: apiVersion: generators.external-secrets.io/v1alpha1 kind: Password name: nextcloud-redis-password --- apiVersion: redis.redis.opstreelabs.in/v1beta2 kind: Redis metadata: name: redis-nextcloud namespace: nextcloud spec: kubernetesConfig: image: quay.io/opstree/redis:v7.0.12 imagePullPolicy: IfNotPresent resources: requests: cpu: 25m memory: 128Mi limits: cpu: 250m memory: 256Mi redisExporter: enabled: false redisSecret: name: redis-nextcloud-secret key: password storage: volumeClaimTemplate: spec: accessModes: ["ReadWriteOnce"] storageClassName: rook-ceph-block resources: requests: storage: 2Gi