mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 22:04:43 +03:00
Add systemd_resolved_disable_stub_listener (#9875)
This commit is contained in:
@@ -143,6 +143,11 @@ coredns_default_zone_cache_block: |
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### systemd_resolved_disable_stub_listener
|
||||||
|
|
||||||
|
Whether or not to set `DNSStubListener=no` when using systemd-resolved. Defaults to `true` on Flatcar.
|
||||||
|
You might need to set it to `true` if CoreDNS fails to start with `address already in use` errors.
|
||||||
|
|
||||||
## DNS modes supported by Kubespray
|
## DNS modes supported by Kubespray
|
||||||
|
|
||||||
You can modify how Kubespray sets up DNS for your cluster with the variables ``dns_mode`` and ``resolvconf_mode``.
|
You can modify how Kubespray sets up DNS for your cluster with the variables ``dns_mode`` and ``resolvconf_mode``.
|
||||||
|
|||||||
@@ -140,3 +140,6 @@ redhat_os_family_extensions:
|
|||||||
# Extending some distributions into the debian os family
|
# Extending some distributions into the debian os family
|
||||||
debian_os_family_extensions:
|
debian_os_family_extensions:
|
||||||
- "UnionTech OS Server 20"
|
- "UnionTech OS Server 20"
|
||||||
|
|
||||||
|
# Sets DNSStubListener=no, useful if you get "0.0.0.0:53: bind: address already in use"
|
||||||
|
systemd_resolved_disable_stub_listener: "{{ ansible_os_family in ['Flatcar', 'Flatcar Container Linux by Kinvolk'] }}"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Domains={{ searchdomains|default([]) | join(' ') }}
|
|||||||
#MulticastDNS=no
|
#MulticastDNS=no
|
||||||
DNSSEC=no
|
DNSSEC=no
|
||||||
Cache=no-negative
|
Cache=no-negative
|
||||||
{% if ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] %}
|
{% if systemd_resolved_disable_stub_listener | bool %}
|
||||||
DNSStubListener=no
|
DNSStubListener=no
|
||||||
{% else %}
|
{% else %}
|
||||||
#DNSStubListener=yes
|
#DNSStubListener=yes
|
||||||
|
|||||||
Reference in New Issue
Block a user