Liveness probes for OpenVSwitch daemons.

Uses ovs-vsctl for ovs-db
Uses ovs-appctl for ovs-vswitchd as "ovs-vsctl show" does not
talk to ovs-vswitchd.

Change-Id: Ia0b84e3546ff1693676ca61370e1344d75b6e308
This commit is contained in:
Hemachandra Reddy 2019-01-23 03:24:09 +00:00
parent 032740957e
commit aef0ff7810
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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