Add socat for CoreOS when using host deploy kubelet (#1575)

This commit is contained in:
Matthew Mosesohn
2017-09-04 11:30:18 +03:00
committed by GitHub
parent 660282e82f
commit fc7905653e
3 changed files with 18 additions and 1 deletions

View File

@@ -6,6 +6,10 @@ dependencies:
- role: download
file: "{{ downloads.pod_infra }}"
tags: [download, kubelet]
- role: download
file: "{{ downloads.install_socat }}"
tags: [download, kubelet]
when: ansible_os_family in ['CoreOS', 'Container Linux by CoreOS']
- role: kubernetes/secrets
tags: k8s-secrets
- role: download
@@ -33,4 +37,4 @@ dependencies:
tags: [download, dnsmasq]
- role: download
file: "{{ downloads.kubednsautoscaler }}"
tags: [download, dnsmasq]
tags: [download, dnsmasq]

View File

@@ -8,3 +8,9 @@
changed_when: false
tags: [hyperkube, upgrade]
notify: restart kubelet
- name: install | Copy socat wrapper for Container Linux
command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/opt/bin {{ install_socat_image_repo }}:{{ install_socat_image_tag }}"
args:
creates: "{{ bin_dir }}/socat"
when: ansible_os_family in ['CoreOS', 'Container Linux by CoreOS']