Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions bindata/network/ovn-kubernetes/ovnkube-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,25 @@ spec:
sleep 2
done
fi
readinessProbe:
initialDelaySeconds: 30
exec:
command:
- /bin/bash
- -c
- |
set -xe
# Determine the ovn rundir.
if [[ -f /usr/bin/ovn-appctl ]] ; then
# ovn-appctl is present. Use new ovn run dir path.
DB_SOCK_PATH=/var/run/ovn/ovnnb_db.ctl
APPCTL_PATH=/usr/bin/ovn-appctl
else
# ovn-appctl is not present. Use openvswitch run dir path.
DB_SOCK_PATH=/var/run/openvswitch/ovnnb_db.ctl
APPCTL_PATH=/usr/bin/ovs-appctl
fi
exec ${APPCTL_PATH} -t ${DB_SOCK_PATH} cluster/status OVN_Northbound 2>/dev/null | grep ${K8S_NODE_IP} | grep -v Address -q
env:
- name: OVN_LOG_LEVEL
value: info
Expand Down Expand Up @@ -236,6 +255,25 @@ spec:
sleep 2
done
fi
readinessProbe:
initialDelaySeconds: 30
exec:
command:
- /bin/bash
- -c
- |
set -xe
# Determine the ovn rundir.
if [[ -f /usr/bin/ovn-appctl ]] ; then
# ovn-appctl is present. Use new ovn run dir path.
DB_SOCK_PATH=/var/run/ovn/ovnsb_db.ctl
APPCTL_PATH=/usr/bin/ovn-appctl
else
# ovn-appctl is not present. Use openvswitch run dir path.
DB_SOCK_PATH=/var/run/openvswitch/ovnsb_db.ctl
APPCTL_PATH=/usr/bin/ovs-appctl
fi
exec ${APPCTL_PATH} -t ${DB_SOCK_PATH} cluster/status OVN_Southbound 2>/dev/null | grep ${K8S_NODE_IP} | grep -v Address -q
env:
- name: OVN_LOG_LEVEL
value: info
Expand Down