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

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

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

没有配置内存的Limit,CPU和内存的Request,不符合策略实例。

apiVersion: v1
kind: Pod
metadata:
  name: opa-disallowed
  labels:
    owner: me.agilebank.demo
spec:
  containers:
    - name: opa
      image: openpolicyagent/opa:0.9.2
      args:
        - "run"
        - "--server"
        - "--addr=localhost:8080"
      resources:
        limits:
          memory: "2Gi"k8sexternalips
support.huaweicloud.com/usermanual-ucs/ucs_01_0240.html