summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLee Briggs <lee@leebriggs.co.uk>2025-01-31 14:53:05 -0800
committerLee Briggs <lee@leebriggs.co.uk>2025-01-31 14:53:05 -0800
commite0963cb11765f03244fcce47a3abb6edabd3f148 (patch)
tree3bac8f5672e1b45a017a8861341460f228d21ad3
parent3e708bddc5ed3495e635eb9f9380ac294f8a1fc6 (diff)
downloadtailscale-operator_direct_connections.tar.xz
tailscale-operator_direct_connections.zip
Set dns policy to `ClusterFirstWithHostNet`operator_direct_connections
Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
-rw-r--r--cmd/k8s-operator/deploy/chart/templates/deployment.yaml2
-rw-r--r--cmd/k8s-operator/deploy/chart/values.yaml1
2 files changed, 1 insertions, 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.