Difference between revisions of "Kubectl auth"
Jump to navigation
Jump to search
(9 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
* <code>[[kubectl auth can-i]]</code> | * <code>[[kubectl auth can-i]]</code> | ||
* <code>[[kubectl auth reconcile]]</code> | * <code>[[kubectl auth reconcile]]</code> | ||
+ | * <code>[[kubectl auth whoami]]</code> | ||
+ | |||
+ | <pre> | ||
+ | kubectl auth --help | ||
+ | Inspect authorization | ||
+ | |||
+ | Available Commands: | ||
+ | can-i Check whether an action is allowed | ||
+ | reconcile Reconciles rules for RBAC role, role binding, cluster role, and cluster role binding objects | ||
+ | |||
+ | Usage: | ||
+ | kubectl auth [flags] [options] | ||
+ | |||
+ | Use "kubectl <command> --help" for more information about a given command. | ||
+ | Use "kubectl options" for a list of global command-line options (applies to all commands). | ||
+ | </pre> | ||
== Related terms == | == Related terms == | ||
* [[Kubernetes RBAC]] | * [[Kubernetes RBAC]] | ||
− | + | * [[~/.kube/config]] | |
+ | * [[error: You must be logged in to the server (Unauthorized)]] | ||
== See also == | == See also == | ||
+ | * {{kubectl auth}} | ||
+ | * {{Kubernetes roles}} | ||
* {{Kubernetes RBAC}} | * {{Kubernetes RBAC}} | ||
− | * {{ | + | * {{Kubernetes Authorization}} |
+ | * {{Kubernetes Authentication}} | ||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Latest revision as of 13:44, 20 September 2023
kubectl auth --help Inspect authorization Available Commands: can-i Check whether an action is allowed reconcile Reconciles rules for RBAC role, role binding, cluster role, and cluster role binding objects Usage: kubectl auth [flags] [options] Use "kubectl <command> --help" for more information about a given command. Use "kubectl options" for a list of global command-line options (applies to all commands).
Related terms[edit]
See also[edit]
kubectl auth [ can-i | reconcile ]
- Kubernetes roles,
kubectl get [ roles | clusterroles | clusterrolebindings ], kubectl create rolebinding
, K8s Cluster roles - Kubernetes RBAC
kubectl auth, kubectl auth can-i, kubectl auth reconcile
kubectl create [ role | clusterrole | clusterrolebinding
|rolebinding | serviceaccount ], groups:
, Kubernetes RBAC good practices,kube2iam
, K8s Cluster roles,rbac.authorization.k8s.io
,system:
- Kubernetes Authorization,
kubectl auth can-i
- Kubernetes Authentication,
kubectl create serviceaccount, kubectl get serviceaccounts, CertificateSigningRequest, aws-auth
, bearer tokens, EKS Authentication
Advertising: