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
7a730d42
Unverified
Commit
7a730d42
authored
4 years ago
by
petruha
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add bin_dir to PATH environment. (#6764)
parent
10939103
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes/master/tasks/kubeadm-upgrade.yml
+4
-0
4 additions, 0 deletions
roles/kubernetes/master/tasks/kubeadm-upgrade.yml
with
4 additions
and
0 deletions
roles/kubernetes/master/tasks/kubeadm-upgrade.yml
+
4
−
0
View file @
7a730d42
...
...
@@ -25,6 +25,8 @@
until
:
kubeadm_upgrade.rc ==
0
when
:
inventory_hostname == groups['kube-master']|first
failed_when
:
kubeadm_upgrade.rc != 0 and "field is immutable" not in kubeadm_upgrade.stderr
environment
:
PATH
:
"
{{
bin_dir
}}:{{
ansible_env.PATH
}}"
notify
:
Master | restart kubelet
-
name
:
kubeadm | Upgrade other masters
...
...
@@ -42,6 +44,8 @@
failed_when
:
-
kubeadm_upgrade.rc !=
0
-
'
"field
is
immutable"
not
in
kubeadm_upgrade.stderr'
environment
:
PATH
:
"
{{
bin_dir
}}:{{
ansible_env.PATH
}}"
notify
:
Master | restart kubelet
-
name
:
kubeadm | clean kubectl cache to refresh api types
...
...
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