# Source: calckey/charts/redis/templates/replicas/statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: calckey-redis-replicas namespace: "default" labels: app.kubernetes.io/name: redis helm.sh/chart: redis-16.13.2 app.kubernetes.io/instance: calckey app.kubernetes.io/managed-by: Helm app.kubernetes.io/component: replica spec: replicas: 0 selector: matchLabels: app.kubernetes.io/name: redis app.kubernetes.io/instance: calckey app.kubernetes.io/component: replica serviceName: calckey-redis-headless updateStrategy: rollingUpdate: {} type: RollingUpdate template: metadata: labels: app.kubernetes.io/name: redis helm.sh/chart: redis-16.13.2 app.kubernetes.io/instance: calckey app.kubernetes.io/managed-by: Helm app.kubernetes.io/component: replica annotations: checksum/configmap: 704277d4ad2a6b119bddb0231d8e367729adc7969d2cf18690f74d9f4fcc1002 checksum/health: 5bce17c7b4d3099300dec41326b077bb3e748d146175eb1d7e078f3768ebfe41 checksum/scripts: 6b7dad2abd637e7811a0dc9e66ebd8217bfcd41606216ff69782a5bd044c4cd3 checksum/secret: c636eaa1a6b4db1149e57a7f5ac501956a8e872ece7921014fb33593394734ab spec: securityContext: fsGroup: 1001 serviceAccountName: calckey-redis affinity: podAffinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchLabels: app.kubernetes.io/name: redis app.kubernetes.io/instance: calckey app.kubernetes.io/component: replica namespaces: - "default" topologyKey: kubernetes.io/hostname weight: 1 nodeAffinity: terminationGracePeriodSeconds: 30 containers: - name: redis image: docker.io/bitnami/redis:6.2.7-debian-11-r11 imagePullPolicy: "IfNotPresent" securityContext: runAsUser: 1001 command: - /bin/bash args: - -c - /opt/bitnami/scripts/start-scripts/start-replica.sh env: - name: BITNAMI_DEBUG value: "false" - name: REDIS_REPLICATION_MODE value: slave - name: REDIS_MASTER_HOST value: calckey-redis-master-0.calckey-redis-headless.default.svc.cluster.local - name: REDIS_MASTER_PORT_NUMBER value: "6379" - name: ALLOW_EMPTY_PASSWORD value: "no" - name: REDIS_PASSWORD valueFrom: secretKeyRef: name: calckey-redis key: redis-password - name: REDIS_MASTER_PASSWORD valueFrom: secretKeyRef: name: calckey-redis key: redis-password - name: REDIS_TLS_ENABLED value: "no" - name: REDIS_PORT value: "6379" ports: - name: redis containerPort: 6379 startupProbe: failureThreshold: 22 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 tcpSocket: port: redis livenessProbe: initialDelaySeconds: 20 periodSeconds: 5 timeoutSeconds: 6 successThreshold: 1 failureThreshold: 5 exec: command: - sh - -c - /health/ping_liveness_local_and_master.sh 5 readinessProbe: initialDelaySeconds: 20 periodSeconds: 5 timeoutSeconds: 2 successThreshold: 1 failureThreshold: 5 exec: command: - sh - -c - /health/ping_readiness_local_and_master.sh 1 resources: limits: {} requests: {} volumeMounts: - name: start-scripts mountPath: /opt/bitnami/scripts/start-scripts - name: health mountPath: /health - name: redis-data mountPath: /data subPath: - name: config mountPath: /opt/bitnami/redis/mounted-etc - name: redis-tmp-conf mountPath: /opt/bitnami/redis/etc volumes: - name: start-scripts configMap: name: calckey-redis-scripts defaultMode: 0755 - name: health configMap: name: calckey-redis-health defaultMode: 0755 - name: config configMap: name: calckey-redis-configuration - name: redis-tmp-conf emptyDir: {} volumeClaimTemplates: - metadata: name: redis-data labels: app.kubernetes.io/name: redis app.kubernetes.io/instance: calckey app.kubernetes.io/component: replica spec: accessModes: - "ReadWriteOnce" resources: requests: storage: "8Gi"