support disable dns autoscaler when use CoreDNS (#10608)
parent
9a31f3285a
commit
eb73f1d27d
|
@ -21,6 +21,7 @@
|
|||
when:
|
||||
- dns_mode in ['coredns', 'coredns_dual']
|
||||
- inventory_hostname == groups['kube_control_plane'][0]
|
||||
- enable_dns_autoscaler or item.name != 'dns-autoscaler'
|
||||
tags:
|
||||
- coredns
|
||||
|
||||
|
@ -40,5 +41,6 @@
|
|||
when:
|
||||
- dns_mode == 'coredns_dual'
|
||||
- inventory_hostname == groups['kube_control_plane'][0]
|
||||
- enable_dns_autoscaler or item.name != 'dns-autoscaler'
|
||||
tags:
|
||||
- coredns
|
||||
|
|
|
@ -99,6 +99,9 @@ docker_dns_options:
|
|||
# Can be coredns, coredns_dual, manual, or none
|
||||
dns_mode: coredns
|
||||
|
||||
# Enable dns autoscaler
|
||||
enable_dns_autoscaler: true
|
||||
|
||||
# Enable nodelocal dns cache
|
||||
enable_nodelocaldns: true
|
||||
enable_nodelocaldns_secondary: false
|
||||
|
|
Loading…
Reference in New Issue