From e0963cb11765f03244fcce47a3abb6edabd3f148 Mon Sep 17 00:00:00 2001 From: Lee Briggs Date: Fri, 31 Jan 2025 14:53:05 -0800 Subject: [PATCH] Set dns policy to `ClusterFirstWithHostNet` Signed-off-by: Lee Briggs --- cmd/k8s-operator/deploy/chart/templates/deployment.yaml | 2 +- cmd/k8s-operator/deploy/chart/values.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml index 3b16afabb..510ce9468 100644 --- a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml +++ b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml @@ -26,7 +26,7 @@ spec: spec: {{- if .Values.operatorConfig.hostNetwork.enabled }} hostNetwork: true - dnsPolicy: {{ .Values.operatorConfig.hostNetwork.dnsPolicy }} + dnsPolicy: ClusterFirstWithHostNet {{- end }} {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/cmd/k8s-operator/deploy/chart/values.yaml b/cmd/k8s-operator/deploy/chart/values.yaml index 3b1c99c3b..ad88827ab 100644 --- a/cmd/k8s-operator/deploy/chart/values.yaml +++ b/cmd/k8s-operator/deploy/chart/values.yaml @@ -45,7 +45,6 @@ operatorConfig: # Optional host network configuration. Likely only needed for public Kubernetes nodes hostNetwork: enabled: false - dnsPolicy: ClusterFirstWithHostNet # Common options: ClusterFirst, ClusterFirstWithHostNet, Default image: # Repository defaults to DockerHub, but images are also synced to ghcr.io/tailscale/k8s-operator.