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:
36
36
description: The Kubelet will load its initial configuration from this.
37
37
Omit this to use the built-in default configuration values.
38
38
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
39
42
kubectl-drain-timeout:
40
43
description: "The length of time to wait before giving up draining a node, zero means infinite"
41
44
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
32
32
then
33
33
load_cached_containers
34
34
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 %>
35
39
${kubectl} uncordon ${node_name}
36
40
${kubectl} get nodes ${node_name} | grep -e ' Ready '
37
41
echo " kubelet post-start checks succeeded"
You can’t perform that action at this time.
0 commit comments