Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
c825f4d1
Commit
c825f4d1
authored
6 years ago
by
okamototk
Committed by
k8s-ci-robot
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Untaint master when it has node role (#3466)
parent
7e195b06
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes/master/tasks/kubeadm-setup.yml
+5
-0
5 additions, 0 deletions
roles/kubernetes/master/tasks/kubeadm-setup.yml
with
5 additions
and
0 deletions
roles/kubernetes/master/tasks/kubeadm-setup.yml
+
5
−
0
View file @
c825f4d1
...
...
@@ -210,3 +210,8 @@
-
name
:
kubeadm | cleanup old certs if necessary
import_tasks
:
kubeadm-cleanup-old-certs.yml
when
:
old_apiserver_cert.stat.exists
-
name
:
kubeadm | Remove taint for master with node role
command
:
"
{{
bin_dir
}}/kubectl
taint
node
{{
inventory_hostname
}}
node-role.kubernetes.io/master:NoSchedule-"
delegate_to
:
"
{{groups['kube-master']|first}}"
when
:
inventory_hostname in groups['kube-node']
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment