Skip to content

Commit

Permalink
allow to deploy a dnsConfig resource
Browse files Browse the repository at this point in the history
This allows to deploy a dnsConfig resource via the helm chart.
  • Loading branch information
thirdeyenick committed Dec 4, 2024
1 parent 36903c2 commit e69ffc5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmd/k8s-operator/deploy/chart/templates/dns-config.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
12 changes: 12 additions & 0 deletions cmd/k8s-operator/deploy/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit e69ffc5

Please sign in to comment.