Skip to content

Commit

Permalink
change vcluster plugin order
Browse files Browse the repository at this point in the history
  • Loading branch information
ishankhare07 authored Oct 26, 2023
1 parent 97b4074 commit a7d992d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions charts/eks/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,6 @@ Corefile: |-
health
ready
rewrite name regex .*\.nodes\.vcluster\.com kubernetes.default.svc.cluster.local
{{- if and .Values.coredns.integrated .Values.coredns.plugin.enabled }}
vcluster {{ toYaml .Values.coredns.plugin.config | b64enc }}
{{- end }}
kubernetes cluster.local in-addr.arpa ip6.arpa {
{{- if .Values.pro }}
{{- if .Values.coredns.integrated }}
Expand All @@ -205,6 +202,9 @@ Corefile: |-
fallthrough in-addr.arpa ip6.arpa
{{- end }}
}
{{- if and .Values.coredns.integrated .Values.coredns.plugin.enabled }}
vcluster {{ toYaml .Values.coredns.plugin.config | b64enc }}
{{- end }}
hosts /etc/NodeHosts {
ttl 60
reload 15s
Expand Down
6 changes: 3 additions & 3 deletions charts/k0s/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,6 @@ Corefile: |-
health
ready
rewrite name regex .*\.nodes\.vcluster\.com kubernetes.default.svc.cluster.local
{{- if and .Values.coredns.integrated .Values.coredns.plugin.enabled }}
vcluster {{ toYaml .Values.coredns.plugin.config | b64enc }}
{{- end }}
kubernetes cluster.local in-addr.arpa ip6.arpa {
{{- if .Values.pro }}
{{- if .Values.coredns.integrated }}
Expand All @@ -205,6 +202,9 @@ Corefile: |-
fallthrough in-addr.arpa ip6.arpa
{{- end }}
}
{{- if and .Values.coredns.integrated .Values.coredns.plugin.enabled }}
vcluster {{ toYaml .Values.coredns.plugin.config | b64enc }}
{{- end }}
hosts /etc/NodeHosts {
ttl 60
reload 15s
Expand Down
10 changes: 5 additions & 5 deletions charts/k3s/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -189,22 +189,22 @@ Corefile: |-
health
ready
rewrite name regex .*\.nodes\.vcluster\.com kubernetes.default.svc.cluster.local
{{- if and .Values.coredns.integrated .Values.coredns.plugin.enabled }}
vcluster {{ toYaml .Values.coredns.plugin.config | b64enc }}
{{- end }}
kubernetes cluster.local in-addr.arpa ip6.arpa {
{{- if .Values.pro }}
{{- if .Values.coredns.integrated }}
kubeconfig /data/k3s-config/kube-config.yaml
{{- end }}
{{- end }}
pods insecure
{{- if .Values.fallbackHostDns }}
fallthrough cluster.local in-addr.arpa ip6.arpa
{{- if or (.Values.fallbackHostDns) (and .Values.coredns.integrated .Values.coredns.plugin.enabled) }}
fallthrough cluster.local in-addr.arpa ip6.arpa
{{- else }}
fallthrough in-addr.arpa ip6.arpa
{{- end }}
}
{{- if and .Values.coredns.integrated .Values.coredns.plugin.enabled }}
vcluster {{ toYaml .Values.coredns.plugin.config | b64enc }}
{{- end }}
hosts /etc/NodeHosts {
ttl 60
reload 15s
Expand Down
6 changes: 3 additions & 3 deletions charts/k8s/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,6 @@ Corefile: |-
health
ready
rewrite name regex .*\.nodes\.vcluster\.com kubernetes.default.svc.cluster.local
{{- if and .Values.coredns.integrated .Values.coredns.plugin.enabled }}
vcluster {{ toYaml .Values.coredns.plugin.config | b64enc }}
{{- end }}
kubernetes cluster.local in-addr.arpa ip6.arpa {
{{- if .Values.pro }}
{{- if .Values.coredns.integrated }}
Expand All @@ -205,6 +202,9 @@ Corefile: |-
fallthrough in-addr.arpa ip6.arpa
{{- end }}
}
{{- if and .Values.coredns.integrated .Values.coredns.plugin.enabled }}
vcluster {{ toYaml .Values.coredns.plugin.config | b64enc }}
{{- end }}
hosts /etc/NodeHosts {
ttl 60
reload 15s
Expand Down

0 comments on commit a7d992d

Please sign in to comment.