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

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

符合策略实例的资源定义

已经配置内存的Limit,CPU和内存的Request,符合策略实例。

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