Skip to content

Commit dbca990

Browse files
author
Wei Tie
committed
Add toleration for ovs pods
1 parent 526ff12 commit dbca990

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

install/k8s/cluster/bootstrap_centos.sh

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ systemctl disable firewalld
1515

1616
cp /shared/.etc_hosts /etc/hosts
1717

18+
mkdir -p /etc/docker
19+
1820
cat <<EOF >> /etc/docker/daemon.json
1921
{
2022
"storage-driver": "devicemapper"

install/k8s/contiv/base.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ spec:
430430
spec:
431431
hostNetwork: true
432432
hostPID: true
433+
tolerations:
434+
- key: node-role.kubernetes.io/master
435+
effect: NoSchedule
433436
containers:
434437
# Runs ovs containers on each Kubernetes node.
435438
- name: contiv-ovsdb-server

0 commit comments

Comments
 (0)