by

Cluster inspection

The basic command used to view cluster objects is

kubectl get pods,svc,ingress.. -n <namespace>

However, this command doesn’t always work. Particularly, in situations when the namespace is being terminated. If this is the case, a more advanced command can be used:

kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found -l <label>=<value> -n <namespace>

Write a Comment

Comment