diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-02-03 19:25:50 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-02-03 19:25:50 +0100 |
commit | 6ecda893cf6f2d55108e035b127b6f6a425081bf (patch) | |
tree | 3cb6cd184c10ea755e54119188ec04321b5d1649 /roles/kubernetes/base/tasks/main.yml | |
parent | merge linux command line support from realraum repo (diff) |
fix kubernetes role (still needs love)
Diffstat (limited to 'roles/kubernetes/base/tasks/main.yml')
-rw-r--r-- | roles/kubernetes/base/tasks/main.yml | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/roles/kubernetes/base/tasks/main.yml b/roles/kubernetes/base/tasks/main.yml index e6aee41f..5d26d161 100644 --- a/roles/kubernetes/base/tasks/main.yml +++ b/roles/kubernetes/base/tasks/main.yml @@ -56,14 +56,11 @@ name: "{{ item }}" selection: hold -- name: install kubelet config snippets - with_items: - - 20-dns.conf - - 50-extra.conf - template: - src: "{{ item }}.j2" - dest: "/etc/systemd/system/kubelet.service.d/{{ item }}" - notify: reload systemd +- name: set kubelet node-ip + lineinfile: + name: "/etc/default/kubelet" + regexp: '^KUBELET_EXTRA_ARGS=' + line: 'KUBELET_EXTRA_ARGS=--node-ip={{ kubernetes.pod_ip_range | ipsubnet(kubernetes.pod_ip_range_size, kubernetes.net_index[inventory_hostname]) | ipaddr(1) | ipaddr("address") }}' - name: add dummy group with gid 998 group: |