diff --git a/openvswitch/templates/daemonset-ovs-db.yaml b/openvswitch/templates/daemonset-ovs-db.yaml index e4981cc3b..e06db37b1 100644 --- a/openvswitch/templates/daemonset-ovs-db.yaml +++ b/openvswitch/templates/daemonset-ovs-db.yaml @@ -54,6 +54,14 @@ spec: {{ tuple $envAll $envAll.Values.pod.resources.ovs.db | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} securityContext: runAsUser: 0 + livenessProbe: + exec: + command: + - /usr/bin/ovs-vsctl + - show + initialDelaySeconds: 60 + periodSeconds: 30 + timeoutSeconds: 5 command: - /tmp/openvswitch-db-server.sh - start diff --git a/openvswitch/templates/daemonset-ovs-vswitchd.yaml b/openvswitch/templates/daemonset-ovs-vswitchd.yaml index a023a1e95..ae2655def 100644 --- a/openvswitch/templates/daemonset-ovs-vswitchd.yaml +++ b/openvswitch/templates/daemonset-ovs-vswitchd.yaml @@ -81,6 +81,14 @@ spec: command: - /usr/bin/ovs-vsctl - show + livenessProbe: + exec: + command: + - /usr/bin/ovs-appctl + - bond/list + initialDelaySeconds: 60 + periodSeconds: 30 + timeoutSeconds: 5 command: - /tmp/openvswitch-vswitchd.sh - start