Create user group using RBAC API?

核能气质少年 提交于 2019-12-19 19:55:34

问题


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: a@xyz.com,vv@xyz.com
  apiGroup: ""

回答1:


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



来源:https://stackoverflow.com/questions/44763590/create-user-group-using-rbac-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!