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
5e59541f
Unverified
Commit
5e59541f
authored
6 years ago
by
k8s-ci-robot
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #3258 from okamototk/fix_kubectl_path
absolute path for kubectl.
parents
9964ba77
d182d4f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/win_nodes/kubernetes_patch/tasks/main.yml
+2
-2
2 additions, 2 deletions
roles/win_nodes/kubernetes_patch/tasks/main.yml
with
2 additions
and
2 deletions
roles/win_nodes/kubernetes_patch/tasks/main.yml
+
2
−
2
View file @
5e59541f
...
@@ -16,11 +16,11 @@
...
@@ -16,11 +16,11 @@
# Due to https://github.com/kubernetes/kubernetes/issues/58212 we cannot rely on exit code for "kubectl patch"
# Due to https://github.com/kubernetes/kubernetes/issues/58212 we cannot rely on exit code for "kubectl patch"
-
name
:
Check current nodeselector for kube-proxy daemonset
-
name
:
Check current nodeselector for kube-proxy daemonset
shell
:
kubectl get ds kube-proxy --namespace=kube-system -o jsonpath='{.spec.template.spec.nodeSelector.beta
\
.kubernetes
\
.io/os}'
shell
:
"
{{bin_dir}}/
kubectl
get
ds
kube-proxy
--namespace=kube-system
-o
jsonpath='{.spec.template.spec.nodeSelector.beta.kubernetes.io/os}'
"
register
:
current_kube_proxy_state
register
:
current_kube_proxy_state
-
name
:
Apply nodeselector patch for kube-proxy daemonset
-
name
:
Apply nodeselector patch for kube-proxy daemonset
shell
:
kubectl patch ds kube-proxy --namespace=kube-system --type=strategic -p "$(cat nodeselector-os-linux-patch.json)"
shell
:
"
{{bin_dir}}/
kubectl
patch
ds
kube-proxy
--namespace=kube-system
--type=strategic
-p
\
"
$(cat
nodeselector-os-linux-patch.json)
\"
"
args
:
args
:
chdir
:
"
{{
kubernetes_user_manifests_path
}}"
chdir
:
"
{{
kubernetes_user_manifests_path
}}"
register
:
patch_kube_proxy_state
register
:
patch_kube_proxy_state
...
...
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