mirror of https://github.com/easzlab/kubeasz.git
37 lines
841 B
YAML
37 lines
841 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: {{ template "redis-ha.fullname" . }}-configmap-test
|
|
labels:
|
|
{{ include "labels.standard" . | indent 4 }}
|
|
annotations:
|
|
"helm.sh/hook": test-success
|
|
spec:
|
|
containers:
|
|
- name: check-init
|
|
image: koalaman/shellcheck:v0.5.0
|
|
args:
|
|
- --shell=sh
|
|
- /readonly-config/init.sh
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /readonly-config
|
|
readOnly: true
|
|
- name: check-probes
|
|
image: koalaman/shellcheck:v0.5.0
|
|
args:
|
|
- --shell=sh
|
|
- /probes/check-quorum.sh
|
|
volumeMounts:
|
|
- name: probes
|
|
mountPath: /probes
|
|
readOnly: true
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: {{ template "redis-ha.fullname" . }}-configmap
|
|
- name: probes
|
|
configMap:
|
|
name: {{ template "redis-ha.fullname" . }}-probes
|
|
restartPolicy: Never
|