Skip to content

Commit

Permalink
ovnkube-master.yaml /run/openvswitch change from emptyDir to hostPath
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Cambria <mcambria@redhat.com>
  • Loading branch information
mccv1r0 committed Apr 29, 2020
1 parent acd20d1 commit 519f685
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion bindata/network/ovn-kubernetes/ovnkube-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,9 @@ spec:
hostPath:
path: /var/lib/ovn/data
- name: run-openvswitch
emptyDir: {}
hostPath:
path: /run/openvswitch
type: Directory
- name: run-ovn
hostPath:
path: /var/run/ovn
Expand Down
13 changes: 10 additions & 3 deletions bindata/network/ovn-kubernetes/ovnkube-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ spec:
if [[ -f /var/run/openvswitch/ovsdb-server.pid ]] ; then
cat /var/run/openvswitch/ovsdb-server.pid
fi
if [[ -d /run/ovn ]]; then
ls -al /run/ovn
else
echo "/run/ovn doesn't exist"
fi
if [[ -d /var/run/ovn ]]; then
ls -al /var/run/ovn
else
echo "/var/run/ovn doesn't exist"
fi
if [[ -f "/env/${K8S_NODE}" ]]; then
set -o allexport
source "/env/${K8S_NODE}"
Expand Down Expand Up @@ -94,9 +104,6 @@ spec:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- mountPath: /host
name: host-slash
readOnly: false
- mountPath: /run/openvswitch
name: host-run-openvswitch
- mountPath: /run/ovn/
Expand Down

0 comments on commit 519f685

Please sign in to comment.