This repository was archived by the owner on Feb 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ properties:
3636 description: The Kubelet will load its initial configuration from this.
3737 Omit this to use the built-in default configuration values.
3838 Command-line flags override configuration.
39+ master:
40+ description: The kubelet will label and taint itself as a master node with node-role.kubernetes.io/master=:NoSchedule
41+ default: false
3942 kubectl-drain-timeout:
4043 description: "The length of time to wait before giving up draining a node, zero means infinite"
4144 default: "0s"
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ if timeout "$TIMEOUT" /var/vcap/jobs/kubelet/bin/ensure_kubelet_up_and_running
3232then
3333 load_cached_containers
3434 node_name=$( $kubectl get nodes -o wide -L bosh.id | grep " <%= spec.id %>$" | grep ' Ready' | awk ' {print $1}' )
35+ < % if p(" master" ) %>
36+ ${kubectl} label node ${node_name} node-role.kubernetes.io/master=
37+ ${kubectl} taint nodes ${node_name} node-role.kubernetes.io/master=:NoSchedule
38+ < % end %>
3539 ${kubectl} uncordon ${node_name}
3640 ${kubectl} get nodes ${node_name} | grep -e ' Ready '
3741 echo " kubelet post-start checks succeeded"
You can’t perform that action at this time.
0 commit comments