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

时间:2025-02-12 15:05:17

符合策略实例的资源定义

示例中ClusterRole的生效对象中没有endpoints,符合策略实例。

apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:  annotations:    rbac.authorization.kubernetes.io/autoupdate: "true"  creationTimestamp: null  labels:    kubernetes.io/bootstrapping: rbac-defaults    rbac.authorization.k8s.io/aggregate-to-edit: "true"  name: system:aggregate-to-editrules:- apiGroups:  - ""  resources:  - pods/attach  - pods/exec  - secrets  - services/proxy  verbs:  - get  - list  - watch
support.huaweicloud.com/usermanual-ucs/ucs_01_0247.html