Toren
Toren

Reputation: 6854

Create user group using RBAC API?

I can't find documentation on how to create user group on Kubernetes with yaml file. I'd like gather some authenticated users in group using their e-mail accounts.

I'd like to write in yaml something like :

 kind: GoupBinding
 apiVersion: rbac.authorization.k8s.io/v1beta1
 metadata:
   name: "frontend-developers"
   namespace: development
subjects:
- kind: User
  name: [email protected],[email protected]
  apiGroup: ""

Upvotes: 5

Views: 18575

Answers (1)

Jordan Liggitt
Jordan Liggitt

Reputation: 18161

Groups are determined by the configured authentication method. See https://kubernetes.io/docs/reference/access-authn-authz/authentication/ for details about how each authenticator determines the group membership of the authenticated user.

Upvotes: 10

Related Questions