Add DPDK check for readiness probe
This change makes sure that "ovs-vsctl get Open_vSwitch . dpdk_initialized" is true before making the pod ready Change-Id: Ie88f74a1e7a84afb3fbca55b500009255b4f6991
This commit is contained in:
parent
6cc4369e1e
commit
926348fe24
@ -21,11 +21,19 @@ exec:
|
||||
- bond/list
|
||||
{{- end }}
|
||||
{{- define "ovsvswitchreadinessProbeTemplate" }}
|
||||
{{- if not .Values.conf.ovs_dpdk.enabled }}
|
||||
exec:
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- '! /usr/bin/ovs-vsctl show | grep -q error:'
|
||||
- '/usr/bin/ovs-vsctl show'
|
||||
{{- else }}
|
||||
exec:
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- '/usr/bin/ovs-vsctl show && [ $(ovs-vsctl get Open_vSwitch . dpdk_initialized) == true ]'
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.manifests.daemonset_ovs_vswitchd }}
|
||||
|
Loading…
Reference in New Issue
Block a user