Difference between revisions of "Kubectl auth"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(2 intermediate revisions by 2 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> | <pre> | ||
Line 23: | Line 24: | ||
* [[Kubernetes RBAC]] | * [[Kubernetes RBAC]] | ||
* [[~/.kube/config]] | * [[~/.kube/config]] | ||
+ | * [[error: You must be logged in to the server (Unauthorized)]] | ||
== See also == | == See also == | ||
Line 30: | Line 32: | ||
* {{Kubernetes Authorization}} | * {{Kubernetes Authorization}} | ||
* {{Kubernetes Authentication}} | * {{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: