adjust calico-kube-controller to use hostNetwork when using etcd as datastore

This commit is contained in:
JSpon 2022-12-13 21:18:44 -05:00
parent 061f2d872e
commit 40d9b522c9

View file

@ -21,6 +21,9 @@ spec:
spec: spec:
nodeSelector: nodeSelector:
{{ calico_policy_controller_deployment_nodeselector }} {{ calico_policy_controller_deployment_nodeselector }}
{% if calico_datastore == "etcd" %}
hostNetwork: true
{% endif %}
serviceAccountName: calico-kube-controllers serviceAccountName: calico-kube-controllers
tolerations: tolerations:
- key: CriticalAddonsOnly - key: CriticalAddonsOnly