USERs in KUBERNETES

Hello a question, how in KUBERNETES I can create some kind of USERs to associate them with PRIVILEGES, I understand that I can create ROLES, but are these ROLES the lowest existing level? .

I ask because I can code:
$ kubectl auth can-i --list, to know if my current USER has PRIVILEGES to LIST resources, but how can I know which USER I am using and how to CREATE more USERS to be able to validate the command:

$ kubectl auth can-i create pods --as USERNAME

You can create the users by generating the certificate key/pair and approved from the cluster. Then attach required roles to that particular user by creating roles & rolebinding.

Here is more detial : Certificates and Certificate Signing Requests | Kubernetes

1 Like