🧱 add CPU and MEMORY limit

This commit is contained in:
2024-07-24 14:56:43 +01:00
parent ccd4e1b46f
commit d7048fc3e5
+5 -2
View File
@@ -13,7 +13,7 @@ metadata:
name: echo-server name: echo-server
namespace: echo-server namespace: echo-server
spec: spec:
replicas: 5 replicas: 2
selector: selector:
matchLabels: matchLabels:
app: echo-server app: echo-server
@@ -37,7 +37,10 @@ spec:
secretKeyRef: secretKeyRef:
name: backend-user name: backend-user
key: backend-username key: backend-username
resources:
limits:
cpu: 20m
memory: 20Mi
volumeMounts: volumeMounts:
- name: echo-pvc - name: echo-pvc
mountPath: /tmp/mssql/data mountPath: /tmp/mssql/data