Merge pull request #2995 from okamototk/fix_kubectl_path

Fixed kubectl path.
pull/3010/head
Rong Zhang 2018-07-18 22:31:38 +08:00 committed by GitHub
commit 38bd328abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@
shell: >- shell: >-
{{ bin_dir }}/kubectl get configmap kube-proxy -n kube-system -o yaml {{ bin_dir }}/kubectl get configmap kube-proxy -n kube-system -o yaml
| sed 's#server:.*#server:\ {{ kube_apiserver_endpoint }}#g' | sed 's#server:.*#server:\ {{ kube_apiserver_endpoint }}#g'
| kubectl replace -f - | {{ bin_dir }}/kubectl replace -f -
delegate_to: "{{groups['kube-master']|first}}" delegate_to: "{{groups['kube-master']|first}}"
run_once: true run_once: true
when: is_kube_master and kubeadm_discovery_address != kube_apiserver_endpoint when: is_kube_master and kubeadm_discovery_address != kube_apiserver_endpoint