zammad resource limits

This commit is contained in:
Nico Schottelius 2021-10-10 16:58:45 +09:00
parent 5082458eb6
commit 3bdcadb118

View file

@ -26,6 +26,13 @@ spec:
- name: postgres-data
mountPath: "/var/lib/postgresql/data"
subPath: postgres
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "400m"
volumes:
- name: postgres-data
persistentVolumeClaim:
@ -51,20 +58,18 @@ spec:
env:
- name: discovery.type
value: "single-node"
# Required, because elasticsearch is using chroot()
securityContext:
capabilities:
add: ["SYS_CHROOT"]
# resources:
# requests:
# memory: "64Mi"
# cpu: "100m"
# limits:
# memory: "128Mi"
# cpu: "500m"
add: ["SYS_CHROOT"] # Required, because elasticsearch is using chroot()
ports:
- containerPort: 9200
resources:
requests:
memory: "1.2Gi"
cpu: "400m"
limits:
memory: "3Gi"
cpu: "2000m"
---
apiVersion: v1
kind: Service