华为云UCS-k8spspprivilegedcontainer:策略实例示例

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

策略实例示例

以下策略实例展示了策略定义生效的资源类型。

apiVersion: constraints.gatekeeper.sh/v1beta1kind: K8sPSPPrivilegedContainermetadata:  name: psp-privileged-containerspec:  match:    kinds:      - apiGroups: [""]        kinds: ["Pod"]    excludedNamespaces: ["kube-system"]
support.huaweicloud.com/usermanual-ucs/ucs_01_0221.html