Readiness/Liveness probe for libvirt

Adding the check "virsh list" to accomplish
readiness/liveness probe for libvirt

Change-Id: I5f16c0a83327d9350b968a3f9b2588df1d76fb30
This commit is contained in:
bk160f 2019-03-12 17:13:37 -05:00 committed by Tin Lam
parent 8673bdda53
commit dfe3dddb31

View File

@ -125,6 +125,18 @@ spec:
- name: LIBVIRT_CEPH_CINDER_SECRET_UUID
value: "{{ .Values.conf.ceph.cinder.secret_uuid }}"
{{ end }}
readinessProbe:
exec:
command:
- bash
- -c
- /usr/bin/virsh list
livenessProbe:
exec:
command:
- bash
- -c
- /usr/bin/virsh list
command:
- /tmp/libvirt.sh
lifecycle: