Add Liveness/Readiness probe to calico-etcd.
This commit is to add liveness probe to calico-etcd-anchor pod and both liveness/readiness probe to calico-etcd pod. Change-Id: I2f856fa9d73152073accd753e715558457ff59e2
This commit is contained in:
parent
12b1e84791
commit
a2e452ae42
|
@ -98,6 +98,16 @@ spec:
|
||||||
value: https://$(POD_IP):{{ .Values.network.service_peer.target_port }}
|
value: https://$(POD_IP):{{ .Values.network.service_peer.target_port }}
|
||||||
- name: MANIFEST_PATH
|
- name: MANIFEST_PATH
|
||||||
value: /manifests/{{ .Values.service.name }}.yaml
|
value: /manifests/{{ .Values.service.name }}.yaml
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /tmp/bin/readiness
|
||||||
|
{{ toYaml .Values.readinessProbe.config | indent 8 }}
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /tmp/bin/readiness
|
||||||
|
{{ toYaml .Values.livenessProbe.config | indent 8 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /var/lib/etcd
|
mountPath: /var/lib/etcd
|
||||||
|
|
|
@ -143,6 +143,18 @@ pod:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
cpu: "100m"
|
cpu: "100m"
|
||||||
|
|
||||||
|
livenessProbe:
|
||||||
|
config:
|
||||||
|
failureThreshold: 10
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 30
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
config:
|
||||||
|
failureThreshold: 10
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 30
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
etcd_backup:
|
etcd_backup:
|
||||||
cron: "0 */12 * * *"
|
cron: "0 */12 * * *"
|
||||||
|
|
Loading…
Reference in New Issue