From dfe3dddb31fc378a49595e7fb102313382c737a0 Mon Sep 17 00:00:00 2001 From: bk160f Date: Tue, 12 Mar 2019 17:13:37 -0500 Subject: [PATCH] Readiness/Liveness probe for libvirt Adding the check "virsh list" to accomplish readiness/liveness probe for libvirt Change-Id: I5f16c0a83327d9350b968a3f9b2588df1d76fb30 --- libvirt/templates/daemonset-libvirt.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libvirt/templates/daemonset-libvirt.yaml b/libvirt/templates/daemonset-libvirt.yaml index 5c1000405..21ce3e35f 100644 --- a/libvirt/templates/daemonset-libvirt.yaml +++ b/libvirt/templates/daemonset-libvirt.yaml @@ -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: