ServiceAccount

ServiceAccount

ServiceAccount par défaut

Créer

Injecter

Lister

$ kubectl get serviceaccount
NAME          SECRETS  AGE
default       1        218d
dashboard-sa  1        4d

Inspecter

$ kubectl describe serviceaccount dashboard-sa
Name:                dashboard-sa
Namespace:           default
Labels:              <none>
Annotations:         <none>
Image pull secrets:  <none>
Mountable secrets:   dashboard-sa-token-kbbdm
Tokens:              dashboard-sa-token-kbbdm
Events:              <none>
$ kubectl describe secret dashboard-sa-token-kbbdm
Name:       dashboard-sa-token-kbbdm
Namespace:  default
Labels:     <none>

Type:  kubernetes.io/service-account-token

Data
====
ca.crt:     1025 bytes
namespace:  7 bytes
token:      eyJh...

Créer un token