Browse Source

Set configure-cloud-routes=false as default if no network plugin is used (#3788)

* Set configure-cloud-routes=false as default if no network plugin is used

As configure-cloud-routes default value is `true`, so it need to be set to `false` when not required to avoid error messages like:
"Couldn't reconcile node routes: error listing routes: unable to find route table for AWS cluster" 
on, for example, AWS installations that don't use cloud native routing.

* Update kube-controller-manager.manifest.j2

remove extra spaces
pull/3803/head
karbyshevds 5 years ago
committed by Kubernetes Prow Robot
parent
commit
b109f52dab
1 changed files with 2 additions and 0 deletions
  1. 2
      roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2

2
roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2

@ -54,6 +54,8 @@ spec:
{% endif %}
{% if kube_network_plugin is defined and kube_network_plugin == 'cloud' %}
- --configure-cloud-routes=true
{% else %}
- --configure-cloud-routes=false
{% endif %}
{% if kube_network_plugin is defined and kube_network_plugin in ["cloud", "flannel", "canal", "cilium", "kube-router"] %}
- --allocate-node-cidrs=true

Loading…
Cancel
Save