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:
Goutham Pratapa 2019-03-22 18:43:20 +05:30 committed by rajesh.kudaka
parent 12b1e84791
commit a2e452ae42
2 changed files with 22 additions and 0 deletions

View File

@ -98,6 +98,16 @@ spec:
value: https://$(POD_IP):{{ .Values.network.service_peer.target_port }}
- name: MANIFEST_PATH
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:
- name: data
mountPath: /var/lib/etcd

View File

@ -143,6 +143,18 @@ pod:
memory: "128Mi"
cpu: "100m"
livenessProbe:
config:
failureThreshold: 10
initialDelaySeconds: 15
periodSeconds: 30
readinessProbe:
config:
failureThreshold: 10
initialDelaySeconds: 15
periodSeconds: 30
jobs:
etcd_backup:
cron: "0 */12 * * *"