Pods on kubernetes worker is not able to resolve dns and service name

i am trying to setup kubernetes cluster on ec2 in private subnet of aws, but DNS resolution is not working inside worker node pods although both the host is resolving dns

Hi @souravmishra,

Please share some screenshots of the issue if possible. Also, if you’re using the KodeKloud playground, check this link for guidance: amazon-elastic-kubernetes-service-course/docs/playground.md at main · kodekloudhub/amazon-elastic-kubernetes-service-course · GitHub

Bro check out config of api server theere would be dns name like k8s.local it is dns of cluster so check it you are typing wrong dns addresss or check dns ip and core dns ip