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

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

符合策略实例的资源定义

示例中readOnlyRootFilesystem字段为true,符合策略实例。

apiVersion: v1
kind: Pod
metadata:
  name: nginx-readonlyrootfilesystem-allowed
  labels:
    app: nginx-readonlyrootfilesystem
spec:
  containers:
  - name: nginx
    image: nginx
    securityContext:
      readOnlyRootFilesystem: true
support.huaweicloud.com/usermanual-ucs/ucs_01_0219.html