kubernetes

Kubernetes Calico Debian 10 "10.96.0.1:443 connection refused"

Well well well here we go again. Just tried to bring my server infrastructure to some new stuff and startet to install K8s by hand. Everything went fine until I tried to install the network fabric in K8s. First I chosed Flannel but always got the error "10.96.0.1:443 connection refused" in the logs of the deployment. After googling it seems to be a problem with the resolv.conf. I tried to modify the file and start over again but nope, no luck. After googling much more and switching to Calico I stumbled across this post right here: https://github.com/projectcalico/calico/issues/2322
It has come to light that Debian 10 "Buster" is using nftables instead of iptables which breaks the routing. I had to switch back from nftables to "legacy" iptables and check, everything's works completely fine. If you're in this situation and you want to solve it quickly just use this command

update-alternatives --set iptables /usr/sbin/iptables-legacy

Happy clouding :)