No such host error when executing kops validate cluster command

0 votes

I have created a cluster on AWS using kops, i tried checking the cluster status using the following command

kops validate cluster

I got the following error:

Using cluster from kubectl context: useast1.edureka.co
Validating cluster useast1.edureka.co
unexpected error during validation: unable to resolve Kubernetes cluster API URL dns: lookup api.useast1.edureka.co on 127.0.0.53:53: no such host
Oct 17, 2018 in Kubernetes by Nilesh
• 7,060 points
5,579 views

1 answer to this question.

0 votes
You get this error when the cluster hasn't been created, give some time, let the cluster be created and then check again.

If it still doesnt work, the easiest but not recommended solution is to delete or reset the cluster and make it again.
answered Oct 17, 2018 by Kalgi
• 52,350 points
wow! great answer!! if you don't know the actual reason drop off.
Well I faced the same error and solved it by this. I got this hack from stackoverflow. Also, I personally think it's not the best workaround(mentioned in the answer). If you have a better solution please do share.

Related Questions In Kubernetes

0 votes
1 answer

Kops validate cluster giving an error saying no such host

One of the possible reasons could be using ...READ MORE

answered Jan 8, 2019 in Kubernetes by Manali
2,659 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,350 points
1,393 views
0 votes
1 answer

Create LoadBalancer for kubernetes cluster in aws

Hello @Lina, If you're running your cluster on ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 52,350 points
747 views
+1 vote
1 answer
0 votes
1 answer

"no such file or directory" error while executing yaml file as a cron job

When you get errors like these, you ...READ MORE

answered Sep 18, 2018 in Kubernetes by Kalgi
• 52,350 points
3,366 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP