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