KUBERNETES(1) kubernetes KUBERNETES(1) (NAME) kubectl-auth-can-i - (SYNOPSIS) kubectl auth can-i [OPTIONS] (DESCRIPTION) . VERB API 'get' 'list' 'watch' 'delete' . TYPE (resolve) . NONRESOURCEURL "/" . NAME . (impersonation) --as . (OPTIONS) -A, --all-namespaces=false true namespace . --list=false true . --no-headers=false true . -q, --quiet=false true . --subresource="" (SubResource) pod/log deployment/scale (OPTIONS INHERITED FROM PARENT COMMANDS) --as="" (impersonate) . (service account) namespace . --as-group=[] . --as-uid="" UID . --as-user-extra=[] . --cache-dir="/home/username/.kube/cache" --certificate-authority="" (certificate authority) --client-certificate="" TLS --client-key="" TLS --cluster="" kubeconfig --context="" kubeconfig --disable-compression=false true --insecure-skip-tls-verify=false true . HTTPS --kubeconfig="" kubeconfig CLI. --kuberc="" kuberc (preferences). export feature gate KUBECTL_KUBERC=false KUBERC=off . --match-server-version=false -n, --namespace="" namespace CLI --password="" (basic authentication) API --profile="none" . (none|cpu|heap|goroutine|threadcreate|block|mutex|trace) --profile-output="profile.pprof" --request-timeout="0" . ( 1s 2m 3h). ( timeout). -s, --server="" Kubernetes API --tls-server-name="" . hostname --token="" Bearer API --user="" kubeconfig --username="" API --version=false --version --version=raw --version=vX.Y.Z... --warnings-as-errors=false (EXAMPLE) # namespace kubectl auth can-i create pods --all-namespaces # deployment namespace kubectl auth can-i list deployments.apps # "foo" namespace "dev" namespace "prod" # "--as" kubectl auth can-i list pods --as=system:serviceaccount:dev:foo -n prod # namespace ("*" ) kubectl auth can-i '*' '*' # "bar" namespace "foo" kubectl auth can-i list jobs.batch/bar -n foo # kubectl auth can-i get pods --subresource=log # /logs/ kubectl auth can-i get /logs/ # certificates.k8s.io kubectl auth can-i approve certificates.k8s.io # namespace "foo" kubectl auth can-i --list --namespace=foo (SEE ALSO) kubectl-auth(1) (HISTORY) Eric Paris (eparis at redhat dot com) kubernetes ! Eric Paris Jan 2015 KUBERNETES(1)