support disable dns autoscaler when use CoreDNS (#10608)

pull/10723/head
刘旭 2023-12-14 17:03:34 +08:00 committed by GitHub
parent 9a31f3285a
commit eb73f1d27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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