Set dns policy to ClusterFirstWithHostNet

Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
This commit is contained in:
Lee Briggs 2025-01-31 14:53:05 -08:00
parent 3e708bddc5
commit e0963cb117
No known key found for this signature in database
GPG Key ID: A4D09B96FDFEB505
2 changed files with 1 additions and 2 deletions

View File

@ -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:

View File

@ -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.