简体   繁体   English

Kubernetes RBAC 集减法 / cluster-admin 没有能力

[英]Kubernetes RBAC set subtraction / cluster-admin without capabilities

Is it possible to create a Kubernetes cluster admin without the ability to modify/read certain namespace and its content?是否可以创建一个 Kubernetes 集群管理员而不能修改/读取某些命名空间及其内容?

I am talking about subtracting certain permissions from existing role.我说的是从现有角色中减去某些权限。

thanks.谢谢。

To get the behavior you want you would need a set subtraction of cluster-admin role minus the rules that you have defined.要获得您想要的行为,您需要一组减去集群管理员角色减去您定义的规则。 It's not supported in K8s as of this writing.在撰写本文时,K8s 不支持它。

If you need a custom role which has less permissions than a predefined role, it would be more clear to list those permissions rather than to list the inverse of those permissions.如果您需要一个权限少于预定义角色的自定义角色,那么列出这些权限而不是列出这些权限的倒数会更清楚。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM