Fix for unknown 'kubernetes.io' or 'k8s.io' labels specified with --node-labels (#4320)

* Fix the file path for all.yml and k8s-cluster.yml

* Fix --node-labels namespace error "unknown labels specified"

* Update templates and configs kubelet node-labels
This commit is contained in:
Robert Neumann
2019-04-10 13:14:12 +02:00
committed by Kubernetes Prow Robot
parent 6caa639243
commit 586ad89d50
18 changed files with 25 additions and 25 deletions

View File

@@ -176,7 +176,7 @@
- old_apiserver_cert.stat.exists
- name: kubeadm | Remove taint for master with node role
command: "{{ bin_dir }}/kubectl --kubeconfig {{ kube_config_dir }}/admin.conf taint node {{ inventory_hostname }} node-role.kubernetes.io/master:NoSchedule-"
command: "{{ bin_dir }}/kubectl --kubeconfig {{ kube_config_dir }}/admin.conf taint node {{ inventory_hostname }} node.kubernetes.io/master:NoSchedule-"
delegate_to: "{{groups['kube-master']|first}}"
when: inventory_hostname in groups['kube-node']
failed_when: false