Difference between revisions of "Kubectl create serviceaccount"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | * https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_create_serviceaccount/ | ||
[[kubectl create]] serviceaccount mynewuser | [[kubectl create]] serviceaccount mynewuser | ||
serviceaccount/mynewuser created | serviceaccount/mynewuser created |
Revision as of 18:17, 17 June 2022
kubectl create serviceaccount mynewuser serviceaccount/mynewuser created
kubectl get serviceaccounts mynewuser -o yaml apiVersion: v1 kind: ServiceAccount metadata: creationTimestamp: "2022-06-13T17:31:37Z" name: mynewuser namespace: default resourceVersion: "701464" uid: cbeca936-ec30-4a6f-ba83-47c6ce366d05 secrets: - name: mynewuser-token-vjdsc
kubectl get secret mynewuser-token-vjdsc -o yaml
Related
See also
- 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 Authentication,
kubectl create serviceaccount, kubectl get serviceaccounts, CertificateSigningRequest, aws-auth
, bearer tokens, EKS Authentication
Advertising: