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

时间:2024-09-12 15:06:02

不符合策略实例的资源定义

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

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: cluster-role-binding-2
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-role-2
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