Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A ovs process gets killed when oom-killer is invoked #80

Merged
merged 1 commit into from
Feb 7, 2019
Merged
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
18 changes: 10 additions & 8 deletions bindata/network/openshift-sdn/sdn-ovs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,8 @@ spec:
/usr/share/openvswitch/scripts/ovs-ctl start --no-ovsdb-server --system-id=random

tail --follow=name /var/log/openvswitch/ovs-vswitchd.log /var/log/openvswitch/ovsdb-server.log &
sleep 20
while true; do
if ! /usr/share/openvswitch/scripts/ovs-ctl status &>/dev/null; then
echo "OVS seems to have crashed, exiting"
quit
fi
sleep 15
sleep 10000
done
securityContext:
privileged: true
Expand All @@ -97,9 +92,16 @@ spec:
name: host-config-openvswitch
resources:
requests:
cpu: 100m
memory: 300Mi
cpu: 200m
memory: 400Mi
terminationMessagePolicy: FallbackToLogsOnError
livenessProbe:
exec:
command:
- /usr/share/openvswitch/scripts/ovs-ctl
- status
initialDelaySeconds: 15
periodSeconds: 5
nodeSelector:
beta.kubernetes.io/os: linux
volumes:
Expand Down