--- apiVersion: apps/v1 kind: StatefulSet metadata: labels: app.kubernetes.io/component: replica app.kubernetes.io/managed-by: octopus app.kubernetes.io/name: redis-db app.kubernetes.io/release: bj-sh-uas-260511 octopus.control: redis-db-wdd name: helm-redis-replicas namespace: bj-sh-uas-260511 spec: persistentVolumeClaimRetentionPolicy: whenDeleted: Retain whenScaled: Retain podManagementPolicy: OrderedReady replicas: 0 revisionHistoryLimit: 10 selector: matchLabels: app.kubernetes.io/component: replica app.kubernetes.io/name: redis-db app.kubernetes.io/release: bj-sh-uas-260511 serviceName: helm-redis-headless template: metadata: annotations: checksum/configmap: b64aa5db67e6e63811f3c1095b9fce34d83c86a471fccdda0e48eedb53a179b0 checksum/health: 6e0a6330e5ac63e565ae92af1444527d72d8897f91266f333555b3d323570623 checksum/scripts: b88df93710b7c42a76006e20218f05c6e500e6cc2affd4bb1985832f03166e98 checksum/secret: 43f1b0e20f9cb2de936bd182bc3683b720fc3cf4f4e76cb23c06a52398a50e8d creationTimestamp: null labels: app.kubernetes.io/component: replica app.kubernetes.io/managed-by: octopus app.kubernetes.io/name: redis-db app.kubernetes.io/release: bj-sh-uas-260511 octopus.control: redis-db-wdd spec: containers: - args: - -c - /opt/bitnami/scripts/start-scripts/start-replica.sh command: - /bin/bash env: - name: BITNAMI_DEBUG value: "false" - name: REDIS_REPLICATION_MODE value: slave - name: REDIS_MASTER_HOST value: helm-redis-master-0.helm-redis-headless.bj-sh-uas-260511.svc.cluster.local - name: REDIS_MASTER_PORT_NUMBER value: "6379" - name: ALLOW_EMPTY_PASSWORD value: "no" - name: REDIS_PASSWORD valueFrom: secretKeyRef: key: redis-password name: helm-redis - name: REDIS_MASTER_PASSWORD valueFrom: secretKeyRef: key: redis-password name: helm-redis - name: REDIS_TLS_ENABLED value: "no" - name: REDIS_PORT value: "6379" image: 192.168.3.31:8088/cmii/redis:6.2.14-debian-11-r1 imagePullPolicy: Always livenessProbe: exec: command: - sh - -c - /health/ping_liveness_local_and_master.sh 5 failureThreshold: 5 initialDelaySeconds: 20 periodSeconds: 5 successThreshold: 1 timeoutSeconds: 6 name: redis ports: - containerPort: 6379 name: redis protocol: TCP readinessProbe: exec: command: - sh - -c - /health/ping_readiness_local_and_master.sh 1 failureThreshold: 5 initialDelaySeconds: 20 periodSeconds: 5 successThreshold: 1 timeoutSeconds: 2 resources: limits: cpu: "2" memory: 8Gi requests: cpu: "2" memory: 8Gi securityContext: runAsUser: 1001 terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /opt/bitnami/scripts/start-scripts name: start-scripts - mountPath: /health name: health - mountPath: /data name: redis-data - mountPath: /opt/bitnami/redis/mounted-etc name: config - mountPath: /opt/bitnami/redis/etc name: redis-tmp-conf dnsPolicy: ClusterFirst imagePullSecrets: - name: harborsecret restartPolicy: Always schedulerName: default-scheduler securityContext: fsGroup: 1001 serviceAccount: helm-redis serviceAccountName: helm-redis terminationGracePeriodSeconds: 30 volumes: - configMap: defaultMode: 493 name: helm-redis-scripts name: start-scripts - configMap: defaultMode: 493 name: helm-redis-health name: health - configMap: defaultMode: 420 name: helm-redis-configuration name: config - emptyDir: {} name: redis-tmp-conf - emptyDir: {} name: redis-data updateStrategy: rollingUpdate: partition: 0 type: RollingUpdate --- apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/component: replica app.kubernetes.io/managed-by: octopus app.kubernetes.io/name: redis-db app.kubernetes.io/release: bj-sh-uas-260511 octopus.control: redis-db-wdd name: helm-redis-replicas namespace: bj-sh-uas-260511 spec: ports: - name: tcp-redis port: 6379 protocol: TCP targetPort: redis selector: app.kubernetes.io/component: replica app.kubernetes.io/name: redis-db app.kubernetes.io/release: bj-sh-uas-260511 sessionAffinity: None type: ClusterIP