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,220 points
2,469 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
• 51,950 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,980 points

Related Questions In Kubernetes

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 15 in Kubernetes by MD
• 57,560 points
212 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
• 18,410 points
209 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
8,427 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 51,950 points

reshown Apr 12, 2019 by Kalgi 2,553 views
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
• 51,950 points
1,850 views