techno-tim / k3s-ansible

The easiest way to bootstrap a self-hosted High Availability Kubernetes cluster. A fully automated HA k3s etcd install with kube-vip, MetalLB, and more. Build. Destroy. Repeat.
https://technotim.live/posts/k3s-etcd-ansible/
Apache License 2.0
2.41k stars 1.05k forks source link

DNS troubles #181

Closed gcraenen closed 1 year ago

gcraenen commented 1 year ago

After bringing the cluster up with these scripts and deploying some apps and pods in it, I am having problems with DNS in the cluster. I cannot reach pods, etc. in the cluster itself (same namespace) by dns name, but can reach them by ip address. Same goes for destinations outside of the cluster.

I tries and tested the steps from kubernete.io with the dnsutils pod and in those test I only find a lot of error messages like:

[WARNING] No files matching import glob pattern: custom/*.override

It seems to be a coredns problem, already described in this blogpost: https://blog.differentpla.net/blog/2022/02/25/pod-dns-problems/