华为云UCS-k8sdisallowanonymous:符合策略实例的资源定义

时间:2024-01-05 16:50:36

符合策略实例的资源定义

ClusterRole关联到cluster-role-1 Role中,符合策略实例。

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: cluster-role-binding-1
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-role-1
subjects:
- apiGroup: rbac.authorization.k8s.io
  kind: Group
  name: system:authenticated
- apiGroup: rbac.authorization.k8s.io
  kind: Group
  name: system:unauthenticated
support.huaweicloud.com/usermanual-ucs/ucs_01_0239.html