【k8s系列】(202307) 创建一个限定ns的最大权限

绑到cluster-admin上面

1
2
3
4
5
6
7
8
9
10
11
# kubectl get clusterrole -A |grep admin
admin 2023-06-14T09:22:20Z
cluster-admin 2023-06-14T09:22:20Z
system:aggregate-to-admin 2023-06-14T09:22:20Z
system:kubelet-api-admin 2023-06-14T09:22:20Z



# kubectl create rolebinding xxx --clusterrole=cluster-admin --serviceaccount=xx --namespace=xx
rolebinding.rbac.authorization.k8s.io/xx created

参考

K8S权限控制,限制用户在多个namespace上的访问权限
# Kubernetes 如何限制不同的团队只能访问各自的 namespace?


【k8s系列】(202307) 创建一个限定ns的最大权限
http://example.com/2023/07/07/k8s/【k8s系列】(202307) 创建一个限定ns的最大权限/
作者
ningan123
发布于
2023年7月7日
许可协议