✨ add CPU and MEMORY limit
This commit is contained in:
@@ -76,6 +76,10 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: status.podIP
|
fieldPath: status.podIP
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 50Mi
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9001
|
- containerPort: 9001
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
@@ -28,7 +28,10 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: portainer-config
|
- name: portainer-config
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 50Mi
|
||||||
volumes:
|
volumes:
|
||||||
- name: portainer-config
|
- name: portainer-config
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|||||||
Reference in New Issue
Block a user