Analysis

kgp

-> showing nginx crashbackoffloop

kl nginx-7bf7bd99c5-cw8vl

-> showing no DNS resolution

https://stackoverflow.com/questions/73297599/coredns-running-status-but-not-become-ready kubectl run -it test-nginx-svc --image=nginx -- bash

curl http://:8080

curl http://nginx-service:8080

cat /etc/resolv.conf

kgpa

-> showing coredns pod not up

–> dns is not working

  1. delete coredns

kubectl delete –namespace kube-system pod coredns-6799fbcd5-m5jq2

  1. delete nginx (to trigger redeploy instead of waiting for the crashloopbackoff)

kubectl delete pod nginx-7bf7bd99c5-cw8vl