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

@@ -27,6 +27,11 @@ spec:
- --cloud-config={{ kube_config_dir }}/cloud_config
{% elif cloud_provider is defined and cloud_provider == "aws" %}
- --cloud-provider={{cloud_provider}}
{% endif %}
{% if kube_network_plugin is defined and kube_network_plugin == 'cloud' %}
- --allocate-node-cidrs=true
- --configure-cloud-routes=true
- --cluster-cidr={{ kube_pods_subnet }}
{% endif %}
livenessProbe:
httpGet: