Set dnsPolicy to ClusterFirstWithHostNet when hostNetwork is true (#4843)

This commit is contained in:
Andreas Krüger
2019-06-05 12:17:56 +02:00
committed by Kubernetes Prow Robot
parent 045acc724b
commit 818aa7aeb1
27 changed files with 30 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ spec:
# The API proxy must run in the host network namespace so that
# it isn't governed by policy that would prevent it from working.
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
nodeSelector:
node-role.kubernetes.io/master: ""

View File

@@ -19,6 +19,7 @@ spec:
priorityClassName: system-node-critical
{% endif %}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
tolerations:
- operator: Exists

View File

@@ -19,6 +19,7 @@ spec:
priorityClassName: system-node-critical
{% endif %}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
affinity:
nodeAffinity:

View File

@@ -19,6 +19,7 @@ spec:
priorityClassName: system-node-critical
{% endif %}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
nodeSelector:
node-role.kubernetes.io/master: ""

View File

@@ -22,6 +22,7 @@ spec:
# The netmaster must run in the host network namespace so that
# it isn't governed by policy that would prevent it from working.
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
nodeSelector:
node-role.kubernetes.io/master: ""

View File

@@ -24,6 +24,7 @@ spec:
priorityClassName: system-node-critical
{% endif %}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
tolerations:
- operator: Exists

View File

@@ -21,6 +21,7 @@ spec:
priorityClassName: system-node-critical
{% endif %}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
tolerations:
- operator: Exists