Site Tools


bookstack:work:liquid:kubernetes_notes

Kubernetes notes

Useful commands

kubectl api-resources # List all possible resources to "get"
kubectl auth can-i $VERB $RESOURCE 

For example, to check if user logged with configuration dev-k8s-config can get pods/log resource on cluster beebox-mobile:

kubectl auth can-i get pods --subresource=log -n beebox-mobile --kubeconfig /home/cloud_user/dev-k8s-config
bookstack/work/liquid/kubernetes_notes.txt · Last modified: by 127.0.0.1