华为云UCS-k8spspfsgroup:不符合策略实例的资源定义
时间:2025-02-12 15:05:17
不符合策略实例的资源定义
示例中fsGroup设为了2000,不符合策略实例。
apiVersion: v1kind: Podmetadata: name: fsgroup-disallowedspec: securityContext: fsGroup: 2000 # directory will have group ID 2000 volumes: - name: fsgroup-demo-vol emptyDir: {} containers: - name: fsgroup-demo image: busybox command: [ "sh", "-c", "sleep 1h" ] volumeMounts: - name: fsgroup-demo-vol mountPath: /data/demo
support.huaweicloud.com/usermanual-ucs/ucs_01_0225.html