Add pseudo network plugin called "cloud" to use cloud provider for network

Allow to let the cloud provider configure proper routing for nodes.
This commit is contained in:
Alexander Block
2016-12-07 17:41:53 +01:00
parent 33585fa673
commit d20d5e648f
5 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
---
- name: Cloud | 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/"
register: cni_task_result
until: cni_task_result.rc == 0
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
changed_when: false

View File

@@ -12,3 +12,5 @@ dependencies:
- role: network_plugin/canal
when: kube_network_plugin == 'canal'
tags: canal
- role: network_plugin/cloud
when: kube_network_plugin == 'cloud'