ReadinessProbe for OVS-DB Pod

This implementation is to add readiness probe to ovs-db pod.
The goal is to check if the db.sock is connected by executing ovs-vsctl
command to list the Open_vswitch configuration table.

Change-Id: Idd4382d95d07ffff94a30bcb7ac132b88e9d6de1
This commit is contained in:
bk160f 2018-12-19 02:50:49 -06:00
parent cb021c2124
commit 7c7d7eb7dd

View File

@ -52,6 +52,15 @@ spec:
- name: openvswitch-db - name: openvswitch-db
{{ tuple $envAll "openvswitch_db_server" | include "helm-toolkit.snippets.image" | indent 10 }} {{ tuple $envAll "openvswitch_db_server" | include "helm-toolkit.snippets.image" | indent 10 }}
{{ tuple $envAll $envAll.Values.pod.resources.ovs.db | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} {{ tuple $envAll $envAll.Values.pod.resources.ovs.db | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
readinessProbe:
exec:
command:
- /usr/bin/ovs-vsctl
- list
- Open_Vswitch
initialDelaySeconds: 90
periodSeconds: 30
timeoutSeconds: 5
securityContext: securityContext:
runAsUser: 0 runAsUser: 0
livenessProbe: livenessProbe: