CoreDNS Restarts Repeatedly
Symptom
When Kubernetes is started, Pod CoreDNS restarts repeatedly and is in the crashloopbackoff state.
Conclusion and Solution
- Check whether /etc/resolve.conf is correctly configured.
- Modify the Kubernetes configuration file.
kubectl -n kube-system edit configmap coredns
Delete the loop field, save the configuration, and delete the Pod. The Pod will automatically restart.
Parent topic: Troubleshooting
