diff --git a/cmd/k8s-operator/deploy/chart/templates/dns-config.yaml b/cmd/k8s-operator/deploy/chart/templates/dns-config.yaml new file mode 100644 index 0000000000000..e74948062505a --- /dev/null +++ b/cmd/k8s-operator/deploy/chart/templates/dns-config.yaml @@ -0,0 +1,13 @@ +{{ if .Values.dnsConfig.enabled }} +apiVersion: tailscale.com/v1alpha1 +kind: DNSConfig +metadata: + name: dnsconfig + namespace: {{ .Release.Namespace }} +spec: + domain: {{ .Values.dnsConfig.domain | quote }} + nameserver: + image: + repo: {{ .Values.dnsConfig.image.repo | quote }} + tag: {{ .Values.dnsConfig.image.tag | default .Chart.AppVersion }} +{{ end }} diff --git a/cmd/k8s-operator/deploy/chart/values.yaml b/cmd/k8s-operator/deploy/chart/values.yaml index e6f4cada44de7..4cfbdee2dab6a 100644 --- a/cmd/k8s-operator/deploy/chart/values.yaml +++ b/cmd/k8s-operator/deploy/chart/values.yaml @@ -90,3 +90,15 @@ apiServerProxyConfig: mode: "false" # "true", "false", "noauth" imagePullSecrets: [] + +# dnsConfig allows to deploy the k8s-nameserver which allows to use magicDNS +# names. +dnsConfig: + enabled: false + image: + repo: "tailscale/k8s-nameserver" + ## tag can be used to overwrite the tag of the container image to be used. + ## By default the appVersion will be used. + tag: "" + ## domain allows to customize the magicDNS domain. + domain: "ts.net"