mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-18 03:30:07 -03:30
Set dnsPolicy to ClusterFirstWithHostNet when hostNetwork is true (#4843)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
045acc724b
commit
818aa7aeb1
@@ -29,6 +29,7 @@ spec:
|
||||
priorityClassName: system-node-critical
|
||||
{% endif %}
|
||||
hostNetwork: true
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
serviceAccountName: calico-node
|
||||
tolerations:
|
||||
- effect: NoExecute
|
||||
|
||||
@@ -51,6 +51,7 @@ spec:
|
||||
nodeSelector:
|
||||
beta.kubernetes.io/os: linux
|
||||
hostNetwork: true
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
tolerations:
|
||||
# Mark the pod as a critical add-on for rescheduling.
|
||||
- key: CriticalAddonsOnly
|
||||
|
||||
Reference in New Issue
Block a user