Browse Source
Merge pull request #2540 from mattymo/cloud_config_timing
Write cloud-config during kubelet configuration
pull/2553/head
Andreas Krüger
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
13 additions and
13 deletions
-
roles/kubernetes/node/tasks/main.yml
-
roles/kubernetes/preinstall/tasks/main.yml
|
@ -134,6 +134,19 @@ |
|
|
tags: |
|
|
tags: |
|
|
- kube-proxy |
|
|
- kube-proxy |
|
|
|
|
|
|
|
|
|
|
|
- name: Write cloud-config |
|
|
|
|
|
template: |
|
|
|
|
|
src: "{{ cloud_provider }}-cloud-config.j2" |
|
|
|
|
|
dest: "{{ kube_config_dir }}/cloud_config" |
|
|
|
|
|
group: "{{ kube_cert_group }}" |
|
|
|
|
|
mode: 0640 |
|
|
|
|
|
when: |
|
|
|
|
|
- cloud_provider is defined |
|
|
|
|
|
- cloud_provider in [ 'openstack', 'azure', 'vsphere' ] |
|
|
|
|
|
notify: restart kubelet |
|
|
|
|
|
tags: |
|
|
|
|
|
- cloud-provider |
|
|
|
|
|
|
|
|
# reload-systemd |
|
|
# reload-systemd |
|
|
- meta: flush_handlers |
|
|
- meta: flush_handlers |
|
|
|
|
|
|
|
|
|
@ -256,19 +256,6 @@ |
|
|
tags: |
|
|
tags: |
|
|
- bootstrap-os |
|
|
- bootstrap-os |
|
|
|
|
|
|
|
|
- name: Write cloud-config |
|
|
|
|
|
template: |
|
|
|
|
|
src: "{{ cloud_provider }}-cloud-config.j2" |
|
|
|
|
|
dest: "{{ kube_config_dir }}/cloud_config" |
|
|
|
|
|
group: "{{ kube_cert_group }}" |
|
|
|
|
|
mode: 0640 |
|
|
|
|
|
when: |
|
|
|
|
|
- inventory_hostname in groups['k8s-cluster'] |
|
|
|
|
|
- cloud_provider is defined |
|
|
|
|
|
- cloud_provider in [ 'openstack', 'azure', 'vsphere' ] |
|
|
|
|
|
tags: |
|
|
|
|
|
- cloud-provider |
|
|
|
|
|
|
|
|
|
|
|
- import_tasks: etchosts.yml |
|
|
- import_tasks: etchosts.yml |
|
|
tags: |
|
|
tags: |
|
|
- bootstrap-os |
|
|
- bootstrap-os |
|
|