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

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

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

示例中securityContext字段中的procMount为Unmasked,不符合策略实例。

apiVersion: v1
kind: Pod
metadata:
  name: nginx-proc-mount-disallowed
  labels:
    app: nginx-proc-mount
spec:
  containers:
  - name: nginx
    image: nginx
    securityContext:
      procMount: Unmasked
support.huaweicloud.com/usermanual-ucs/ucs_01_0220.html