kubernetes error: the server doesn't have a resource type "jenkins"

4/1/2021

I recently installed Jenkins on my kubernetes cluster and the Pod is always pending when I try the command:

kubectl describe "pod name"

I get the error: the server doesn't have a resource type "jenkins"

I got the same problem when installing gitea.

note : I am running kubernetes on a virtual machine (local)

-- Mohamed Amine Askri
gitea
jenkins
kubernetes

1 Answer

4/2/2021

This error means that you are not specifying the resource type in your command. So if I have a pod "mypod-zzxch" running in a namespace "services", then the command would be:

kubectl describe pod mypod-zzxch -n services
-- Ruairios
Source: StackOverflow