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

0 votes

I'm running kubectl create -f blah.yml

The response I get is:

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

Is there any way to determine which resource was requested that was not found?

kubectl get ns returns

NAME STATUS AGE
default Active 243d
kube-public Active 243d
kube-system Active 243d

This is not a cron job.
Client version 1.9
Server version 1.6

Sep 19, 2018 in Kubernetes by lina
• 8,100 points
249 views

2 answers to this question.

0 votes

Running kubectl create -f blah.yml -v=8 will print all the HTTP traffic (requests and responses) in an easy to read way. In this way, one can identify which resource is not available from the http responses.

answered Sep 19, 2018 by Kalgi
• 37,320 points
0 votes

official Documentation says:

A client should be skewed no more than one minor version from the master, but may lead the master by up to one minor version. For example, a v1.3 master should work with v1.1, v1.2, and v1.3 nodes, and should work with v1.2, v1.3, and v1.4 clients

You can either downgrade the client or upgrade the server!

answered Sep 19, 2018 by Nilesh
• 6,900 points

Related Questions In Kubernetes

0 votes
4 answers

Error saying "Unable to connect to the server: x509: certificate signed by unknown authority"

Append kubectl get all command with --insecure-skip-tls-verify=true This did ...READ MORE

answered Apr 23 in Kubernetes by Joshua
2,770 views
0 votes
1 answer

Error saying "the program 'curl' is currently not installed"

Install curl using this command: apt-get update && ...READ MORE

answered Nov 23, 2018 in Kubernetes by Hannah
• 14,080 points
49 views
0 votes
1 answer

Could not find default credentials

Use gcloud auth application-default login to login for application ...READ MORE

answered Aug 30, 2018 in Kubernetes by Kalgi
• 37,320 points
72 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
1,090 views
+3 votes
1 answer
0 votes
1 answer

Error saying "The specified bucket does not exist" in kubernetes

Bucket is created in another region. Looks like ...READ MORE

answered Aug 31, 2018 in Kubernetes by Kalgi
• 37,320 points
197 views