Skip to content
Snippets Groups Projects
Commit c6f21020 authored by Smaine Kahlouch's avatar Smaine Kahlouch Committed by GitHub
Browse files

Merge pull request #412 from kubespray/optionalkubeletcni

Copy hyperkube cni plugins optionally for calico deployment
parents 612266f3 f073ee91
No related branches found
No related tags found
No related merge requests found
......@@ -9,3 +9,8 @@ ipip: false
# cloud_provider:
calicoctl_image_repo: calico/ctl
calicoctl_image_tag: "{{ calico_version }}"
# Set to true if your Hyperkube has all required components to run
# calico. This is required in order to run canalized calico.
use_hyperkube_cni: false
......@@ -25,10 +25,17 @@
- name: Calico | Install calico cni bin
command: rsync -piu "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico"
changed_when: false
when: not use_hyperkube_cni
- name: Calico | Install calico-ipam cni bin
command: rsync -piu "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico-ipam"
changed_when: false
when: not use_hyperkube_cni
- name: Calico | Copy cni plugins from hyperkube
command: "/usr/bin/docker run --rm -v /opt/cni/bin:/cnibindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -r /opt/cni/bin/. /cnibindir/"
changed_when: false
when: use_hyperkube_cni
- name: Calico | wait for etcd
uri: url=http://localhost:2379/health
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment