RBAC

Sécurité

Authentication

Certificat

Basic

Pour utiliser l’authentification Basic:

Bearer

Service account


Autorisation

Configuration du mode d’autorisation

API Groups

Role

Lister

$ k get roles --all-namespaces
NAMESPACE     NAME                                             CREATED AT
blue          developer                                        2024-02-02T21:02:11Z
kube-public   kubeadm:bootstrap-signer-clusterinfo             2024-02-02T20:53:37Z

Inspecter

$ k describe role kube-proxy -n kube-system
Name:         kube-proxy
Labels:       <none>
Annotations:  <none>
PolicyRule:
  Resources   Non-Resource URLs  Resource Names  Verbs
  ---------   -----------------  --------------  -----
  configmaps  []                 [kube-proxy]    [get]

RoleBinding

Lister

$ k get rolebinding --all-namespaces
NAMESPACE   NAME               ROLE             AGE
blue        dev-user-binding   Role/developer   4m16s

Inspecter

$ kubectl describe rolebinding kube-proxy -n kube-system
Name:         kube-proxy
Labels:       <none>
Annotations:  <none>
Role:
  Kind:  Role
  Name:  kube-proxy
Subjects:
  Kind   Name                                             Namespace
  ----   ----                                             ---------
  Group  system:bootstrappers:kubeadm:default-node-token  

Can I

ClusterRole

Ressources sans namespace