Hello, Team!
I want to knox how Kubernetes manages its user. The official documentation says that no API object for user.
But still the admin can make rolebinding / clusterrolebinding to user with kubectl create rolebinding|clusterrolebinding --user
command.
I found that there exist several methods to authenticate who the user is: client certificates, bearer tokens, an authenticating proxy, or HTTP basic auth.
Here’s my questions:
Q1-1) Is the users in ~/.kube/config
should be authenticated via any of the authentication methods (client certificates,…)?
Q1-2) When I add jane to ~/.kube/config
, should the users.name
match with the certificate’s /CN
or the name
in the ~/.kube/config
is just a nickname? I tried kubectl get pods --as kubernetes-admin
where kubernetes-admin
is in ~/.kube/config
, but it returns an Error (forbidden)
Q1-3) Is there any way to get all authenticated users? I tried kubectl get csr
but It did not show kubernetes-admin
in ~/.kube/config