Skip to content

Commit

Permalink
chore: When hostNetwork is enabled, dnsPolicy is now set to ClusterFi…
Browse files Browse the repository at this point in the history
…rstWithHostNet.

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".
  • Loading branch information
kahirokunn committed Jun 15, 2023
1 parent 76a683d commit ee4b6f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/charts/cert-manager/templates/webhook-deployment.yaml
Expand Up @@ -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 }}
Expand Down

0 comments on commit ee4b6f9

Please sign in to comment.