chore: When hostNetwork is enabled, dnsPolicy is now set to ClusterFirstWithHostNet.
https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy > For Pods running with hostNetwork, you should explicitly set its DNS policy to "ClusterFirstWithHostNet". Signed-off-by: kahirokunn <okinakahiro@gmail.com>
This commit is contained in:
parent
76a683d1d6
commit
c2c0209acd
@ -55,6 +55,9 @@ spec:
|
||||
{{- if .Values.webhook.hostNetwork }}
|
||||
hostNetwork: true
|
||||
{{- end }}
|
||||
{{- if .Values.webhook.hostNetwork }}
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}-webhook
|
||||
{{- with .Values.webhook.image }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user