我想创建两个Pod,每个Pod中只有一个容器具有资源限制和请求。我该怎么办?
答案 0 :(得分:2)
您可以关注:
也就是说:
apiVersion: v1
kind: Pod
metadata:
name: cpu-demo
namespace: cpu-example
spec:
containers:
- name: demo-ctr
image: vish/stress
resources:
limits:
cpu: "1"
memory: "200Mi"
requests:
cpu: "0.5"
memory: "100Mi"
args:
- -cpus
- "2"
在广告连播级别:“ Configure a Pod Quota for a Namespace”。