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
5f75d4c0
Commit
5f75d4c0
authored
7 years ago
by
Abdelsalam Abbas
Browse files
Options
Downloads
Patches
Plain Diff
Uncodron Masters which have scheduling Enabled
parent
6e7323e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/upgrade/post-upgrade/tasks/main.yml
+2
-1
2 additions, 1 deletion
roles/upgrade/post-upgrade/tasks/main.yml
upgrade-cluster.yml
+1
-0
1 addition, 0 deletions
upgrade-cluster.yml
with
3 additions
and
1 deletion
roles/upgrade/post-upgrade/tasks/main.yml
+
2
−
1
View file @
5f75d4c0
...
...
@@ -3,4 +3,5 @@
-
name
:
Uncordon node
command
:
"
{{
bin_dir
}}/kubectl
uncordon
{{
inventory_hostname
}}"
delegate_to
:
"
{{
groups['kube-master'][0]
}}"
when
:
needs_cordoning|default(false)
when
:
(needs_cordoning|default(false)) and ( {%- if inventory_hostname in groups['kube-node'] -%}
true
{%- else -%}
false
{%- endif -%} )
This diff is collapsed.
Click to expand it.
upgrade-cluster.yml
+
1
−
0
View file @
5f75d4c0
...
...
@@ -67,6 +67,7 @@
-
{
role
:
kubernetes/node
,
tags
:
node
}
-
{
role
:
kubernetes/master
,
tags
:
master
}
-
{
role
:
network_plugin
,
tags
:
network
}
-
{
role
:
upgrade/post-upgrade
,
tags
:
post-upgrade
}
#Finally handle worker upgrades, based on given batch size
-
hosts
:
kube-node:!kube-master
...
...
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