Skip to content

Commit

Permalink
set clusterdomain value in _coredns.tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
vardhaman-surana committed Dec 16, 2024
1 parent fa41bde commit ad1815f
Show file tree
Hide file tree
Showing 2 changed files with 429 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chart/templates/_coredns.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Corefile: |-
{{- if .Values.networking.advanced.proxyKubelets.byHostname }}
rewrite name regex .*\.nodes\.vcluster\.com kubernetes.default.svc.cluster.local
{{- end }}
kubernetes cluster.local in-addr.arpa ip6.arpa {
kubernetes{{ if and (.Values.networking.advanced.clusterDomain) (ne .Values.networking.advanced.clusterDomain "cluster.local") }} {{ .Values.networking.advanced.clusterDomain }}{{ end }} cluster.local in-addr.arpa ip6.arpa {
{{- if .Values.controlPlane.coredns.embedded }}
kubeconfig /data/vcluster/admin.conf
{{- end }}
Expand Down
Loading

0 comments on commit ad1815f

Please sign in to comment.