Files
CmiiDeploy/48-202412-浙江移动扩容/全量备份/all-statefull_sets-zjyd.yaml
2024-12-18 17:42:35 +08:00

1075 lines
32 KiB
YAML

---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/managed-by: octopus-control
app.kubernetes.io/version: 5.7.0
cmii.app: helm-emqxs
cmii.emqx.architecture: cluster
cmii.type: middleware
helm.sh/chart: emqx-1.1.0
name: helm-emqxs
namespace: zjyd
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
cmii.app: helm-emqxs
cmii.emqx.architecture: cluster
cmii.type: middleware
serviceName: helm-emqxs-headless
template:
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: octopus-control
app.kubernetes.io/version: 5.7.0
cmii.app: helm-emqxs
cmii.emqx.architecture: cluster
cmii.type: middleware
helm.sh/chart: emqx-1.1.0
spec:
affinity: {}
containers:
- envFrom:
- configMapRef:
name: helm-emqxs-env
image: 192.168.10.3:8033/cmii/emqx:5.5.1
imagePullPolicy: Always
name: helm-emqxs
ports:
- containerPort: 1883
name: mqtt
protocol: TCP
- containerPort: 8883
name: mqttssl
protocol: TCP
- containerPort: 8081
name: mgmt
protocol: TCP
- containerPort: 8083
name: ws
protocol: TCP
- containerPort: 8084
name: wss
protocol: TCP
- containerPort: 18083
name: dashboard
protocol: TCP
- containerPort: 4370
name: ekka
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/emqx/data/mnesia
name: emqx-data
- mountPath: /opt/emqx/etc/plugins/emqx_auth_mnesia.conf
name: helm-emqxs-cm
subPath: emqx_auth_mnesia.conf
- mountPath: /opt/emqx/data/loaded_plugins
name: helm-emqxs-cm
subPath: loaded_plugins
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: harborsecret
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: helm-emqxs
serviceAccountName: helm-emqxs
terminationGracePeriodSeconds: 30
volumes:
- name: emqx-data
persistentVolumeClaim:
claimName: helm-emqxs
- configMap:
defaultMode: 420
items:
- key: emqx_auth_mnesia.conf
path: emqx_auth_mnesia.conf
- key: acl.conf
path: acl.conf
- key: loaded_plugins
path: loaded_plugins
name: helm-emqxs-cm
name: helm-emqxs-cm
updateStrategy:
type: RollingUpdate
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/managed-by: Helm
cmii.app: live-srs
cmii.type: midware
helm.sh/chart: cmlc-live-srs-rtc-2.0.0
srs-role: rtc
name: helm-live-srs-rtc
namespace: zjyd
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
srs-role: rtc
serviceName: helm-live-srsrtc-svc
template:
metadata:
creationTimestamp: null
labels:
srs-role: rtc
spec:
containers:
- env:
- name: CANDIDATE
value: 111.2.224.59
image: 192.168.10.3:8033/cmii/srs:v5.0.195
imagePullPolicy: IfNotPresent
name: srs-rtc
ports:
- containerPort: 32006
name: srs-rtmp
protocol: TCP
- containerPort: 1985
name: srs-api
protocol: TCP
- containerPort: 8080
name: srs-flv
protocol: TCP
- containerPort: 20090
name: srs-webrtc
protocol: UDP
- containerPort: 30556
name: srs-srt
protocol: UDP
resources:
limits:
cpu: "4"
memory: 4Gi
requests:
cpu: 100m
memory: 256Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /usr/local/srs/conf/docker.conf
name: srs-conf-file
subPath: docker.conf
- mountPath: /home/dvr
name: srs-vol
subPath: default/helm-live/dvr
- mountPath: /home/hls
name: srs-vol
subPath: default/helm-live/hls
- env:
- name: OSS_ENDPOINT
value: http://192.168.10.2:9000
- name: OSS_AK
value: cmii
- name: OSS_SK
value: B#923fC7mk
- name: OSS_BUCKET
value: live-srs-hls
- name: SRS_OP
value: http://helm-live-op-svc-v2:8080
- name: MYSQL_ENDPOINT
value: 192.168.10.10:33061
- name: MYSQL_USERNAME
value: k8s_admin
- name: MYSQL_PASSWORD
value: fP#UaH6qQ3)8
- name: MYSQL_DATABASE
value: cmii_live_srs_op
- name: MYSQL_TABLE
value: live_segment
- name: LOG_LEVEL
value: info
- name: OSS_META
value: "yes"
image: 192.168.10.3:8033/cmii/cmii-srs-oss-adaptor:2023-SA-skip-CHL
imagePullPolicy: Always
name: oss-adaptor
resources:
limits:
cpu: 1200m
memory: 4Gi
requests:
cpu: 100m
memory: 256Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /cmii/share/hls
name: srs-vol
subPath: default/helm-live/hls
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: harborsecret
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 420
items:
- key: srs.rtc.conf
path: docker.conf
name: helm-live-srs-cm
name: srs-conf-file
- emptyDir:
sizeLimit: 10Gi
name: srs-vol
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/managed-by: octopus-control
app.kubernetes.io/version: 5.7.0
cmii.app: helm-mongo
cmii.type: middleware
helm.sh/chart: mongo-1.1.0
name: helm-mongo
namespace: zjyd
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
cmii.app: helm-mongo
cmii.type: middleware
serviceName: helm-mongo
template:
metadata:
annotations:
pod.alpha.kubernetes.io/initialized: "true"
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: octopus-control
app.kubernetes.io/version: 5.7.0
cmii.app: helm-mongo
cmii.type: middleware
helm.sh/chart: mongo-1.1.0
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: mongo.node
operator: In
values:
- master
containers:
- env:
- name: MONGO_INITDB_ROOT_USERNAME
value: cmlc
- name: MONGO_INITDB_ROOT_PASSWORD
value: REdPza8#oVlt
image: 192.168.10.3:8033/cmii/mongo:5.0
imagePullPolicy: IfNotPresent
name: helm-mongo
ports:
- containerPort: 27017
name: mongo27017
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data/db
name: mongo-data
subPath: default/helm-mongo/data/db
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: harborsecret
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: mongo-data
persistentVolumeClaim:
claimName: helm-mongo
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/component: primary
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/name: mysql-db
app.kubernetes.io/release: zjyd
cmii.app: mysql
cmii.type: middleware
octopus.control: mysql-db-wdd
name: helm-mysql
namespace: zjyd
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/component: primary
app.kubernetes.io/name: mysql-db
app.kubernetes.io/release: zjyd
cmii.app: mysql
cmii.type: middleware
serviceName: helm-mysql
template:
metadata:
annotations:
checksum/configuration: 6b60fa0f3a846a6ada8effdc4f823cf8003d42a8c8f630fe8b1b66d3454082dd
creationTimestamp: null
labels:
app.kubernetes.io/component: primary
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/name: mysql-db
app.kubernetes.io/release: zjyd
cmii.app: mysql
cmii.type: middleware
octopus.control: mysql-db-wdd
spec:
affinity: {}
containers:
- env:
- name: BITNAMI_DEBUG
value: "true"
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: mysql-root-password
name: helm-mysql
- name: MYSQL_DATABASE
value: cmii
image: 192.168.10.3:8033/cmii/mysql:8.1.0-debian-11-r42
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- /bin/bash
- -ec
- |
password_aux="${MYSQL_ROOT_PASSWORD:-}"
if [[ -f "${MYSQL_ROOT_PASSWORD_FILE:-}" ]]; then
password_aux=$(cat "$MYSQL_ROOT_PASSWORD_FILE")
fi
mysqladmin status -uroot -p"${password_aux}"
failureThreshold: 5
initialDelaySeconds: 120
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3
name: mysql
ports:
- containerPort: 3306
name: mysql
protocol: TCP
readinessProbe:
exec:
command:
- /bin/bash
- -ec
- |
password_aux="${MYSQL_ROOT_PASSWORD:-}"
if [[ -f "${MYSQL_ROOT_PASSWORD_FILE:-}" ]]; then
password_aux=$(cat "$MYSQL_ROOT_PASSWORD_FILE")
fi
mysqladmin status -uroot -p"${password_aux}"
failureThreshold: 5
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3
resources: {}
securityContext:
runAsUser: 1001
startupProbe:
exec:
command:
- /bin/bash
- -ec
- |
password_aux="${MYSQL_ROOT_PASSWORD:-}"
if [[ -f "${MYSQL_ROOT_PASSWORD_FILE:-}" ]]; then
password_aux=$(cat "$MYSQL_ROOT_PASSWORD_FILE")
fi
mysqladmin status -uroot -p"${password_aux}"
failureThreshold: 60
initialDelaySeconds: 120
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /bitnami/mysql
name: mysql-data
- mountPath: /docker-entrypoint-initdb.d
name: custom-init-scripts
- mountPath: /opt/bitnami/mysql/conf/my.cnf
name: config
subPath: my.cnf
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: harborsecret
initContainers:
- command:
- /bin/bash
- -ec
- |
chown -R 1001:1001 /bitnami/mysql
image: 192.168.10.3:8033/cmii/bitnami-shell:11-debian-11-r136
imagePullPolicy: Always
name: change-volume-permissions
resources: {}
securityContext:
runAsUser: 0
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /bitnami/mysql
name: mysql-data
nodeSelector:
mysql-deploy: "true"
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 1001
serviceAccount: helm-mysql
serviceAccountName: helm-mysql
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 420
name: helm-mysql
name: config
- configMap:
defaultMode: 420
name: helm-mysql-init-scripts
name: custom-init-scripts
- hostPath:
path: /var/lib/docker/mysql-pv/zjyd/
type: ""
name: mysql-data
updateStrategy:
type: RollingUpdate
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/version: 5.7.0
cmii.app: helm-nacos
cmii.type: middleware
octopus.control: nacos-wdd
name: helm-nacos
namespace: zjyd
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
cmii.app: helm-nacos
cmii.type: middleware
serviceName: helm-nacos
template:
metadata:
annotations:
pod.alpha.kubernetes.io/initialized: "true"
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/version: 5.7.0
cmii.app: helm-nacos
cmii.type: middleware
octopus.control: nacos-wdd
spec:
affinity: {}
containers:
- env:
- name: NACOS_AUTH_ENABLE
value: "false"
- name: NACOS_REPLICAS
value: "1"
- name: MYSQL_SERVICE_DB_NAME
valueFrom:
configMapKeyRef:
key: mysql.db.name
name: helm-nacos-cm
- name: MYSQL_SERVICE_PORT
valueFrom:
configMapKeyRef:
key: mysql.port
name: helm-nacos-cm
- name: MYSQL_SERVICE_USER
valueFrom:
configMapKeyRef:
key: mysql.user
name: helm-nacos-cm
- name: MYSQL_SERVICE_PASSWORD
valueFrom:
configMapKeyRef:
key: mysql.password
name: helm-nacos-cm
- name: MYSQL_SERVICE_HOST
valueFrom:
configMapKeyRef:
key: mysql.db.host
name: helm-nacos-cm
- name: NACOS_SERVER_PORT
value: "8848"
- name: NACOS_APPLICATION_PORT
value: "8848"
- name: PREFER_HOST_MODE
value: hostname
- name: MODE
value: standalone
- name: SPRING_DATASOURCE_PLATFORM
value: mysql
image: 192.168.10.3:8033/cmii/nacos-server:v2.1.2
imagePullPolicy: IfNotPresent
name: nacos-server
ports:
- containerPort: 8848
name: dashboard
protocol: TCP
- containerPort: 9848
name: tcp-9848
protocol: TCP
- containerPort: 9849
name: tcp-9849
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: harborsecret
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/managed-by: rabbitmq
app.kubernetes.io/name: helm-rabbitmq
app.kubernetes.io/release: wxyd1m
helm.sh/chart: rabbitmq-8.26.1
name: helm-rabbitmq
namespace: zjyd
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/name: helm-rabbitmq
app.kubernetes.io/release: wxyd1m
serviceName: helm-rabbitmq-headless
template:
metadata:
annotations:
checksum/config: ee419cab020927201d3322a38802f988e787d179b3dfcb4e2bef40d5d524d363
checksum/secret: 0c350f0d069c68734be7c5b7b05fae72e096020ca56e33656de9ed2bde1a7320
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: rabbitmq
app.kubernetes.io/name: helm-rabbitmq
app.kubernetes.io/release: wxyd1m
helm.sh/chart: rabbitmq-8.26.1
spec:
containers:
- env:
- name: BITNAMI_DEBUG
value: "false"
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: K8S_SERVICE_NAME
value: helm-rabbitmq-headless
- name: K8S_ADDRESS_TYPE
value: hostname
- name: RABBITMQ_FORCE_BOOT
value: "no"
- name: RABBITMQ_NODE_NAME
value: rabbit@$(MY_POD_NAME).$(K8S_SERVICE_NAME).$(MY_POD_NAMESPACE).svc.cluster.local
- name: K8S_HOSTNAME_SUFFIX
value: .$(K8S_SERVICE_NAME).$(MY_POD_NAMESPACE).svc.cluster.local
- name: RABBITMQ_MNESIA_DIR
value: /bitnami/rabbitmq/mnesia/$(RABBITMQ_NODE_NAME)
- name: RABBITMQ_LDAP_ENABLE
value: "no"
- name: RABBITMQ_LOGS
value: '-'
- name: RABBITMQ_ULIMIT_NOFILES
value: "65536"
- name: RABBITMQ_USE_LONGNAME
value: "true"
- name: RABBITMQ_ERL_COOKIE
valueFrom:
secretKeyRef:
key: rabbitmq-erlang-cookie
name: helm-rabbitmq
- name: RABBITMQ_LOAD_DEFINITIONS
value: "no"
- name: RABBITMQ_SECURE_PASSWORD
value: "yes"
- name: RABBITMQ_USERNAME
value: admin
- name: RABBITMQ_PASSWORD
valueFrom:
secretKeyRef:
key: rabbitmq-password
name: helm-rabbitmq
- name: RABBITMQ_PLUGINS
value: rabbitmq_management, rabbitmq_peer_discovery_k8s, rabbitmq_shovel, rabbitmq_shovel_management, rabbitmq_auth_backend_ldap
image: 192.168.10.3:8033/cmii/rabbitmq:3.11.26-debian-11-r2
imagePullPolicy: Always
lifecycle:
preStop:
exec:
command:
- /bin/bash
- -ec
- |
if [[ -f /opt/bitnami/scripts/rabbitmq/nodeshutdown.sh ]]; then
/opt/bitnami/scripts/rabbitmq/nodeshutdown.sh -t "120" -d "false"
else
rabbitmqctl stop_app
fi
livenessProbe:
exec:
command:
- /bin/bash
- -ec
- rabbitmq-diagnostics -q ping
failureThreshold: 6
initialDelaySeconds: 120
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 20
name: rabbitmq
ports:
- containerPort: 5672
name: amqp
protocol: TCP
- containerPort: 25672
name: dist
protocol: TCP
- containerPort: 15672
name: dashboard
protocol: TCP
- containerPort: 4369
name: epmd
protocol: TCP
readinessProbe:
exec:
command:
- /bin/bash
- -ec
- rabbitmq-diagnostics -q check_running && rabbitmq-diagnostics -q check_local_alarms
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 20
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /bitnami/rabbitmq/conf
name: configuration
- mountPath: /bitnami/rabbitmq/mnesia
name: data
dnsPolicy: ClusterFirst
initContainers:
- args:
- -ec
- |
mkdir -p "/bitnami/rabbitmq/mnesia"
chown -R "5001:5001" "/bitnami/rabbitmq/mnesia"
command:
- /bin/bash
image: 192.168.10.3:8033/cmii/bitnami-shell:11-debian-11-r136
imagePullPolicy: Always
name: volume-permissions
resources: {}
securityContext:
runAsUser: 0
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /bitnami/rabbitmq/mnesia
name: data
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 5001
runAsUser: 5001
serviceAccount: helm-rabbitmq
serviceAccountName: helm-rabbitmq
terminationGracePeriodSeconds: 120
volumes:
- configMap:
defaultMode: 420
items:
- key: rabbitmq.conf
path: rabbitmq.conf
name: helm-rabbitmq-config
name: configuration
- name: data
persistentVolumeClaim:
claimName: helm-rabbitmq
updateStrategy:
type: RollingUpdate
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/component: master
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/name: redis-db
app.kubernetes.io/release: zjyd
cmii.app: redis
cmii.type: middleware
octopus.control: redis-db-wdd
name: helm-redis-master
namespace: zjyd
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/component: master
app.kubernetes.io/name: redis-db
app.kubernetes.io/release: zjyd
cmii.app: redis
cmii.type: middleware
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: master
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/name: redis-db
app.kubernetes.io/release: zjyd
cmii.app: redis
cmii.type: middleware
octopus.control: redis-db-wdd
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: redis.node
operator: In
values:
- master
containers:
- args:
- -c
- /opt/bitnami/scripts/start-scripts/start-master.sh
command:
- /bin/bash
env:
- name: BITNAMI_DEBUG
value: "false"
- name: REDIS_REPLICATION_MODE
value: master
- name: ALLOW_EMPTY_PASSWORD
value: "no"
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
key: redis-password
name: helm-redis
- name: REDIS_TLS_ENABLED
value: "no"
- name: REDIS_PORT
value: "6379"
image: 192.168.10.3:8033/cmii/redis:6.2.6-debian-10-r0
imagePullPolicy: Always
livenessProbe:
exec:
command:
- sh
- -c
- /health/ping_liveness_local.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.sh 1
failureThreshold: 5
initialDelaySeconds: 20
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 2
resources:
limits:
cpu: "4"
memory: 12Gi
requests:
cpu: "4"
memory: 12Gi
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
- mountPath: /tmp
name: tmp
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: tmp
- emptyDir: {}
name: redis-data
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
---
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: zjyd
octopus.control: redis-db-wdd
name: helm-redis-replicas
namespace: zjyd
spec:
podManagementPolicy: OrderedReady
replicas: 0
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/component: replica
app.kubernetes.io/name: redis-db
app.kubernetes.io/release: zjyd
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: zjyd
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.zjyd.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.10.3:8033/cmii/redis:6.2.6-debian-10-r0
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: "4"
memory: 8Gi
requests:
cpu: "4"
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