mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-22 05:30:51 -03: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"
|
||||
|
||||
@@ -42,6 +42,9 @@
|
||||
src: manifests/kube-proxy.manifest.j2
|
||||
dest: "{{ kube_manifest_dir }}/kube-proxy.manifest"
|
||||
|
||||
- name: Write network-environment
|
||||
template: src=network-environment.j2 dest=/etc/network-environment mode=640
|
||||
|
||||
- name: Enable kubelet
|
||||
service:
|
||||
name: kubelet
|
||||
|
||||
Reference in New Issue
Block a user