Kubectl notes
linux kubernetesVarious useful kubectl commands
Switch context
kubectl config set-context --current --namespace=my-namespace
List all api-resources
kubectl api-resources --verbs=list --namespaced -o name
List all cluster resources
kubectl api-resources -o name | xargs -n 1 kubectl get --show-kind --all-namespaces
kubectl api-resources --verbs=list --namespaced -o name \
| xargs -n 1 kubectl get --show-kind --ignore-not-found --all-namespaces