this post was submitted on 25 Apr 2025
5 points (100.0% liked)
Kubernetes
1067 readers
1 users here now
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Do you have any NetworkPolicies configured that could block ingress (to kubedns, in kube-system) or egress (in your namespace) ? If any ingress or egress networkpolicy matches a pod, it flips from AllowByDefault to DenyByDefault.
You should also do kubectl get service and kubectl get endpoints in kube-system, as well as kubectl get pods | grep -i dns
No networkpolicies.
Ignore powerdns, its just extra stuff, but yeah coredns is running
^ endpoints and services: