Copy kubectl from docker container

Nearly the last stage of source all components to containers.
Kubectl will be called from hyperkube image.

Remaining tasks:
 * Move kube_version variable to kubernetes/preinstall
 * Drop placeholder download.nothing requirement
This commit is contained in:
Matthew Mosesohn
2016-07-25 13:56:58 +03:00
parent af4c41f32e
commit b4688701ea
6 changed files with 5 additions and 51 deletions

View File

@@ -7,9 +7,10 @@
dest: /etc/bash_completion.d/kubectl.sh
when: ansible_os_family in ["Debian","RedHat"]
- name: Copy kubectl binary
command: rsync -piu "{{ local_release_dir }}/kubernetes/bin/kubectl" "{{ bin_dir }}/kubectl"
- name: Copy kubectl from hyperkube container
command: "/usr/bin/docker run --rm -v {{ bin_dir }}:/systembindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp /hyperkube /systembindir/kubectl"
changed_when: false
register: kubectl_launcher
- meta: flush_handlers