error the server doesn t have a resource type svc

0 votes

Hi Guys,

I have configured Minikube Cluster. But when I tried to run the Kubectl command, it is showing me the below error.

$ kubectl get svc
error: the server doesn't have a resource type "svc"

How can I solve this error?

Jul 9, 2020 in Kubernetes by akhtar
• 38,260 points
5,169 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to update your cluster details to kubeconfig file. You can use the below-given command to update your cluster details.

$ kubectl config --kubeconfig=config-demo set-cluster development --server=URL --certificate-authority=fake-ca-file
$ kubectl config --kubeconfig=config-demo set-cluster scratch --server=https:URL --insecure-skip-tls-verify

I hope this will solve your error.

answered Jul 9, 2020 by MD
• 95,460 points

Related Questions In Kubernetes

0 votes
2 answers

Error saying “Error from server (NotFound): the server could not find the requested resource”

official Documentation says: A client should be skewed ...READ MORE

answered Sep 19, 2018 in Kubernetes by Nilesh
• 7,060 points
4,400 views
0 votes
1 answer

When I try to connect to the WebSocket through the gateway I get a 403 error

Try upgrading Contour to v0.6.0-beta.3 with IngressRoute You can ...READ MORE

answered Oct 1, 2018 in Kubernetes by Kalgi
• 52,350 points
3,090 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,396 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,476 views
0 votes
1 answer

Error from server (NotFound): the server could not find the requested resource

Hi@akhatr, The following error might indicate that something ...READ MORE

answered Jul 16, 2020 in Kubernetes by MD
• 95,460 points
4,043 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