使用RBAC API创建用户组? [英] Create user group using RBAC API?

查看:103
本文介绍了使用RBAC API创建用户组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到有关如何使用yaml文件在Kubernetes上创建用户组的文档.我想使用他们的电子邮件帐户在组中收集一些经过身份验证的用户.

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.

我想用yaml来写:

 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: ""

推荐答案

组由配置的身份验证方法确定.请参阅 https://kubernetes.io/docs/admin/authentication/了解有关每种方法的详细信息authenticator确定已认证用户的组成员身份.

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.

这篇关于使用RBAC API创建用户组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆