This repository was archived by the owner on Sep 30, 2020. It is now read-only.
File tree 3 files changed +14
-4
lines changed
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -865,10 +865,11 @@ type KubeDnsAutoscaler struct {
865
865
}
866
866
867
867
type KubeDns struct {
868
- Provider string `yaml:"provider"`
869
- NodeLocalResolver bool `yaml:"nodeLocalResolver"`
870
- DeployToControllers bool `yaml:"deployToControllers"`
871
- Autoscaler KubeDnsAutoscaler `yaml:"autoscaler"`
868
+ Provider string `yaml:"provider"`
869
+ NodeLocalResolver bool `yaml:"nodeLocalResolver"`
870
+ NodeLocalResolverOptions []string `yaml:"nodeLocalResolverOptions"`
871
+ DeployToControllers bool `yaml:"deployToControllers"`
872
+ Autoscaler KubeDnsAutoscaler `yaml:"autoscaler"`
872
873
}
873
874
874
875
func (c * KubeDns ) MergeIfEmpty (other KubeDns ) {
Original file line number Diff line number Diff line change @@ -3991,6 +3991,11 @@ write_files:
3991
3991
- --server=/in-addr.arpa/{{.DNSServiceIP}}
3992
3992
- --server=/ip6.arpa/{{.DNSServiceIP}}
3993
3993
- --log-facility=-
3994
+ {{- if ne (len .KubeDns.NodeLocalResolverOptions) 0 }}
3995
+ {{- range .KubeDns.NodeLocalResolverOptions }}
3996
+ - {{.}}
3997
+ {{- end }}
3998
+ {{- end }}
3994
3999
ports:
3995
4000
- containerPort: 53
3996
4001
name: dns
Original file line number Diff line number Diff line change @@ -1363,6 +1363,10 @@ kubeDns:
1363
1363
# When enabled, will enable a DNS-masq DaemonSet to make PODs to resolve DNS names via locally running dnsmasq
1364
1364
# It is disabled by default.
1365
1365
# nodeLocalResolver: false
1366
+ # Extra DnsMasq options to use when running the nodeLocalResolver
1367
+ # nodeLocalResolverOptions:
1368
+ # - --neg-ttl=10
1369
+ # - --no-ping
1366
1370
1367
1371
# When enabled, will deploy kube-dns to K8s controllers instead of workers.
1368
1372
# deployToControllers: false
You can’t perform that action at this time.
0 commit comments