main
黄海 10 months ago
parent 22082f5f47
commit bbd6b9d77a

@ -18,5 +18,13 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 8001
resources:
requests:
memory: "2Gi" # 请求2Gi内存
cpu: "500m" # 请求500 milliCPU1 CPU = 1000 milliCPU
limits:
memory: "4Gi" # 限制4Gi内存
cpu: "1000m" # 限制500 milliCPU
imagePullSecrets:
- name: regcred

@ -18,5 +18,12 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
requests:
memory: "2Gi" # 请求2Gi内存
cpu: "500m" # 请求500 milliCPU1 CPU = 1000 milliCPU
limits:
memory: "4Gi" # 限制4Gi内存
cpu: "1000m" # 限制500 milliCPU
imagePullSecrets:
- name: regcred

Loading…
Cancel
Save