Kubectl : No resource found

sidrah junaid picture sidrah junaid · Nov 16, 2018 · Viewed 22.6k times · Source

I’ve installed ICP4Data successfully. I am pretty green in respect to ICP4Data and Kubernetes. I’m trying to use kubectl command for listing the pods in ICP4D but “kubectl get pods” returns “No resource found”. Am I missing something?

Answer

Sachin Prasad picture Sachin Prasad · Nov 19, 2018

icp4d uses 'zen' namespaces to logically separate its assets and resources from the core native icp/kube platform. In the default installation of ICP4D, there are no pods deployed on 'default' namespace and hence you get "no resources found" cause if you don't provide the namespace while trying to get pods, kubectl assumes its default namespace.

To List the pods from zen namespace

  kubectl get pods -n zen

To list all the namespaces available to you - try

kubectl get namespaces

To list pods from all the namespaces, you might want to append --all-namespaces

kubectl get pods --all-namespaces

This should list all the pods from zen, kubesystem and possibly others.