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

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

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

示例中hostPID和hostIPC均为true,不符合策略实例。

apiVersion: v1
kind: Pod
metadata:
  name: nginx-host-namespace-disallowed
  labels:
    app: nginx-host-namespace
spec:
  hostPID: true
  hostIPC: true
  containers:
  - name: nginx
    image: nginx
support.huaweicloud.com/usermanual-ucs/ucs_01_0223.html