mirror of https://github.com/kubernetes/kops.git
Debian 12 Bookworm: Fix DNS resolution
This commit is contained in:
parent
07627306ed
commit
a7e9c58ba7
|
|
@ -98,15 +98,17 @@ func (d *Distribution) DefaultUsers() ([]string, error) {
|
||||||
// HasLoopbackEtcResolvConf is true if systemd-resolved has put the loopback address 127.0.0.53 as a nameserver in /etc/resolv.conf
|
// HasLoopbackEtcResolvConf is true if systemd-resolved has put the loopback address 127.0.0.53 as a nameserver in /etc/resolv.conf
|
||||||
// See https://github.com/coredns/coredns/blob/master/plugin/loop/README.md#troubleshooting-loops-in-kubernetes-clusters
|
// See https://github.com/coredns/coredns/blob/master/plugin/loop/README.md#troubleshooting-loops-in-kubernetes-clusters
|
||||||
func (d *Distribution) HasLoopbackEtcResolvConf() bool {
|
func (d *Distribution) HasLoopbackEtcResolvConf() bool {
|
||||||
if d.IsUbuntu() {
|
switch d.project {
|
||||||
// Ubuntu > 16.04 has it
|
case "debian":
|
||||||
return d.version > 16.04
|
return d.version >= 12
|
||||||
}
|
case "ubuntu":
|
||||||
if d.project == "flatcar" {
|
return d.version >= 18.04
|
||||||
|
case "flatcar":
|
||||||
return true
|
return true
|
||||||
}
|
default:
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Version returns the (project scoped) numeric version
|
// Version returns the (project scoped) numeric version
|
||||||
func (d *Distribution) Version() float32 {
|
func (d *Distribution) Version() float32 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue