I have a problem on k3s on which awx was installed.
Everything works perfectly, but after a few minutes (sometimes 10min… other times it reaches 30min) a problem arises with the DNS.
For debugging, I created a pod following these directions (Debugging DNS Resolution | Kubernetes)
$ kubectl exec -ti dnsutils -- nslookup google.com
;; connection timed out; no servers could be reached
If I delete the pod used for debug…
$ kubectl -n kube-system delete pod -l k8s-app=kube-dns
pod "coredns-6799fbcd5-knh54" deleted
… everything starts working again
$ kubectl exec -ti dnsutils -- nslookup google.com
Server: 10.43.0.10
Address: 10.43.0.10#53
Non-authoritative answer:
Name: google.com
Address: 216.58.204.238
but it freezes again after a few minutes.
What could be the problem?
$ kubectl version
Client Version: v1.28.3+k3s2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.3+k3s2