Add liveness and readiness probe

This adds liveness/readiness probes to sidecar for etcd

Change-Id: If942de8b7c1a59e7da887e1bdc2626daf699aeab
This commit is contained in:
SPEARS, DUSTIN (ds443n) 2024-02-08 15:03:20 -05:00
parent 7ce7301476
commit c3aac9628d
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,6 @@ exec:
- /bin/sh
- -c
- |-
export ETCDCTL_ENDPOINTS=https://$POD_IP:{{ .Values.network.service_client.target_port }}
etcdctl endpoint health
exit $?
{{- end }}
@ -31,7 +30,6 @@ exec:
- /bin/sh
- -c
- |-
export ETCDCTL_ENDPOINTS=https://$POD_IP:{{ .Values.network.service_client.target_port }}
etcdctl endpoint status
exit $?
{{- end }}
@ -150,6 +148,8 @@ spec:
value: "/etc/etcd/tls/etcd-client-key.pem"
command: ["/bin/sh", "-c", "--"]
args: ["while true; do sleep 30; done;"]
{{ dict "envAll" $envAll "component" "etcd" "container" "etcd" "type" "readiness" "probeTemplate" (include "etcdreadinessProbeTemplate" $envAll | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | indent 6 }}
{{ dict "envAll" $envAll "component" "etcd" "container" "etcd" "type" "liveness" "probeTemplate" (include "etcdlivenessProbeTemplate" $envAll | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | indent 6 }}
volumeMounts:
- name: etc
mountPath: /etc/etcd