From c2c0209acd356f7c0a323c378144fc23fd7465f8 Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Thu, 15 Jun 2023 11:17:07 +0900 Subject: [PATCH] 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 --- deploy/charts/cert-manager/templates/webhook-deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/charts/cert-manager/templates/webhook-deployment.yaml b/deploy/charts/cert-manager/templates/webhook-deployment.yaml index 6c13ec376bf..93354deb8c7 100644 --- a/deploy/charts/cert-manager/templates/webhook-deployment.yaml +++ b/deploy/charts/cert-manager/templates/webhook-deployment.yaml @@ -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 }}