adjust calico-kube-controller to use hostNetwork when using etcd as datastore (#9573)

This commit is contained in:
JSpon 2022-12-13 23:41:34 -05:00 committed by GitHub
parent f8d6b54dbb
commit 94eae6a8dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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