diff --git a/docs/book/src/topics/ipv6.md b/docs/book/src/topics/ipv6.md index 781a24f1b0e..863c6835444 100644 --- a/docs/book/src/topics/ipv6.md +++ b/docs/book/src/topics/ipv6.md @@ -121,11 +121,6 @@ The reference [ipv6 flavor](https://raw.githubusercontent.com/kubernetes-sigs/cl - Kubernetes version needs to be 1.18+ -- etcd needs to listen on 127.0.0.1:2379 in addition to IPv6 IPs to resolve an issue with the etcd health check as the dial transport is only doing IPv4. This is done by modifying the `listen-client-urls` etcd arg in postKubeadmCommands as follows: -```yaml - - sed -i '\#--listen-client-urls#s#$#,https://127.0.0.1:2379#' /etc/kubernetes/manifests/etcd.yaml -``` - - The :53 port needs to be free on the host so coredns can use it. In 18.04, systemd-resolved uses the port :53 on the host and is used by default for DNS. This causes the coredns pods to crash for single stack IPv6 with bind address already in use as coredns pods are run on hostNetwork to leverage the host routes for DNS resolution. This is done by running the following commands in postKubeadmCommands: ```yaml - echo "DNSStubListener=no" >> /etc/systemd/resolved.conf diff --git a/templates/cluster-template-dual-stack.yaml b/templates/cluster-template-dual-stack.yaml index dbaa654f917..d4a50f8d9e2 100644 --- a/templates/cluster-template-dual-stack.yaml +++ b/templates/cluster-template-dual-stack.yaml @@ -139,7 +139,6 @@ spec: - - LABEL=etcd_disk - /var/lib/etcddisk postKubeadmCommands: - - sed -i '\#--listen-client-urls#s#$#,https://127.0.0.1:2379#' /etc/kubernetes/manifests/etcd.yaml - echo "DNSStubListener=no" >> /etc/systemd/resolved.conf - mv /etc/resolv.conf /etc/resolv.conf.OLD && ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf diff --git a/templates/flavors/dual-stack/patches/kubeadm-controlplane.yaml b/templates/flavors/dual-stack/patches/kubeadm-controlplane.yaml index 5c283d13d90..d59c7081330 100644 --- a/templates/flavors/dual-stack/patches/kubeadm-controlplane.yaml +++ b/templates/flavors/dual-stack/patches/kubeadm-controlplane.yaml @@ -5,7 +5,6 @@ metadata: spec: kubeadmConfigSpec: postKubeadmCommands: - - sed -i '\#--listen-client-urls#s#$#,https://127.0.0.1:2379#' /etc/kubernetes/manifests/etcd.yaml # This frees up :53 on the host for the coredns pods - echo "DNSStubListener=no" >> /etc/systemd/resolved.conf - mv /etc/resolv.conf /etc/resolv.conf.OLD && ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf diff --git a/templates/test/ci/cluster-template-prow-dual-stack.yaml b/templates/test/ci/cluster-template-prow-dual-stack.yaml index a132fba905e..0dc839c6201 100644 --- a/templates/test/ci/cluster-template-prow-dual-stack.yaml +++ b/templates/test/ci/cluster-template-prow-dual-stack.yaml @@ -144,7 +144,6 @@ spec: - - LABEL=etcd_disk - /var/lib/etcddisk postKubeadmCommands: - - sed -i '\#--listen-client-urls#s#$#,https://127.0.0.1:2379#' /etc/kubernetes/manifests/etcd.yaml - echo "DNSStubListener=no" >> /etc/systemd/resolved.conf - mv /etc/resolv.conf /etc/resolv.conf.OLD && ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf