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

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

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

Pod中有livenessProbe,但是没有定义probeType,不符合策略实例。

apiVersion: v1kind: Podmetadata:  name: test-pod1spec:  containers:  - name: nginx-1    image: nginx:1.7.9    ports:    - containerPort: 80    livenessProbe:      # tcpSocket:      #   port: 80      # initialDelaySeconds: 5      # periodSeconds: 10    volumeMounts:    - mountPath: /tmp/cache      name: cache-volume  - name: tomcat    image: tomcat    ports:    - containerPort: 8080    readinessProbe:      tcpSocket:        port: 8080      initialDelaySeconds: 5      periodSeconds: 10  volumes:  - name: cache-volume    emptyDir: {}
support.huaweicloud.com/usermanual-ucs/ucs_01_0231.html