mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-19 14:57:43 -02:30
move network-environment template into node role, required by kubelet
This commit is contained in:
@@ -46,10 +46,3 @@
|
||||
register: calico_token
|
||||
when: kube_network_plugin == "calico"
|
||||
delegate_to: "{{ groups['kube-master'][0] }}"
|
||||
|
||||
- name: tokens | Add KUBE_AUTH_TOKEN for calico
|
||||
lineinfile:
|
||||
regexp: "^KUBE_AUTH_TOKEN=.*$"
|
||||
line: "KUBE_AUTH_TOKEN={{ calico_token.content|b64decode }}"
|
||||
dest: "/etc/network-environment"
|
||||
when: kube_network_plugin == "calico"
|
||||
|
||||
Reference in New Issue
Block a user