Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mclayer opened this issue Nov 15, 2019 · 3 comments

Comments

@mclayer
Copy link

mclayer commented Nov 15, 2019

Bases on this message I can't tell what the problem is about.

➜  ~ kubectl doctor
WARN[0000] KUBECONFIG env var not found falling back to auto discovery!
INFO[0000] Going for a full scan as no flags are set!
INFO[0000] Retrieving necessary clientset for targeted k8s cluster.
INFO[0000]
INFO[0000] Fetched namespaces: [default filebeat klatz-prod kube-node-lease kube-public kube-system prometheus traefik]
INFO[0000]
INFO[0000] Starting triage of cluster crucial component health checks.
INFO[0000] Starting triage of nodes that form the cluster.
INFO[0000] Starting triage of cluster-wide Endpoints resources.
INFO[0000] Starting triage of cluster-wide pvc resources.
INFO[0000] Starting triage of cluster-wide pv resources.
INFO[0000] Starting triage of deployment resources across cluster
Error from server (NotFound): the server could not find the requested resource
➜  ~ kubectl krew list
PLUGIN          VERSION
doctor          v0.2.1
➜  ~ kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T23:43:08Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:09:08Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
@emirozer
Copy link
Owner

Thanks for the report, I have an idea why this is happening. I will leave an update a bit later.

@emirozer
Copy link
Owner

emirozer commented Nov 15, 2019

Yeah so this issue you are having is about:

https://github.com/kubernetes/client-go#compatibility-matrix

the client-go that i set for this project is currently version 11.0.0 and it looks like its not fully compatible with your 1.16 cluster.

This is quite a difficult issue to resolve for me, i will do some reading.. Firstly the most up to date clusters i have access to is 1.12, secondly if i just upgrade the client-go version of the plugin, i will be fixing this issue for you while breaking it for others.

I'll do some thinking on this and get back to you. (the least i will do for now is to determine if it can be a compat issue and log warn level about it and continue try do best-effort instead of breaking down)

@emirozer
Copy link
Owner

Alright so https://github.com/emirozer/kubectl-doctor/releases/tag/0.3.0 this new release has "best effort delivery" instead of breaking down on compatibility issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants