Skip to content

Commit

Permalink
Add node-role label to masters (#45)
Browse files Browse the repository at this point in the history
Taint out masters, this stops things like `Service` with `type:
LoadBalancer` from opening NodePorts on masters and registering them wih
target pools
  • Loading branch information
george-angel authored Jul 24, 2018
1 parent 16ac860 commit 6e2784b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/master-kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ExecStartPre=-/bin/sh -c "docker restart $(docker ps --no-trunc | grep 'kube-api
ExecStartPre=-/usr/bin/rkt gc --grace-period=0s
ExecStart=/usr/lib/coreos/kubelet-wrapper \
--kubeconfig=/var/lib/kubelet/kubeconfig \
--node-labels=role=master \
--node-labels=role=master,node-role.kubernetes.io/master="" \
--register-node=true \
--register-with-taints=node-role.kubernetes.io/master=:NoSchedule \
--container-runtime=docker \
Expand Down

0 comments on commit 6e2784b

Please sign in to comment.