darxkies / k8s-tew

Kubernetes - The Easier Way
GNU General Public License v3.0
307 stars 38 forks source link

coredns CrashLoopBackOff Loop detected #31

Closed flamechair closed 4 years ago

flamechair commented 4 years ago

Commands run:

k8s-tew node-add -n node0-i 192.168.10.XX -x 0 -l controller
k8s-tew node-add -n node1 -i 192.168.10.XX -x 1 -l controller
k8s-tew node-add -n node2 -i 192.168.10.XX -x 2 -l controller
k8s-tew node-add -n node3 -i 192.168.10.XX -x 3 -l worker,storage
k8s-tew configure --public-network 192.168.10.0/24
k8s-tew generate --parallel --pull-images
k8s-tew deploy --import-images

Log output for coredns pod:

.:53
[INFO] plugin/reload: Running configuration MD5 = 4e235fcc3696966e76816bcd9034ebc7
CoreDNS-1.6.9
linux/amd64, go1.14.1, 1766568
[FATAL] plugin/loop: Loop (127.0.0.1:33564 -> :53) detected for zone ".", see https://coredns.io/plugins/loop#troubleshooting. Query: "HINFO 5265883604060926287.924288037713224908."

Coredns configmap:

{
    "Corefile": ".:53 {
            errors
            health {
                lameduck 5s
            }
            ready
            kubernetes cluster.local in-addr.arpa ip6.arpa {
              pods insecure
              fallthrough in-addr.arpa ip6.arpa
              ttl 30
            }
            prometheus :9153
            forward . /etc/resolv.conf
            cache 30
            loop
            reload
            loadbalance
        }
        "
}

Using k8s-tew version 2.4.0-beta.5, running Ubuntu 20.04.1 LTS, this is only effecting my worker node

darxkies commented 4 years ago

For Ubuntu you need to run this

k8s-tew configure --resolv-conf=/run/systemd/resolve/resolv.conf

before generate and deploy.

flamechair commented 4 years ago

I'll give that a try, but the documentation says:

# Only on Ubuntu 18.04 to solve any DNS related issues
./k8s-tew configure --resolv-conf=/run/systemd/resolve/resolv.conf

And since I'm running 20.04 and not 18.04, I figured it wasn't required

darxkies commented 4 years ago

There have been some changes that are not documented yet.

darxkies commented 4 years ago

Are the other tickets still relevant? Does it mean that the other pods do run?

flamechair commented 4 years ago

Checking now

flamechair commented 4 years ago

Coredns is running now, will close this ticket and check others