commit 3517093d1c2807e1d93ef1bbd643e3534b69f45c parent 217eaee63c0841dcf6242f613ae18b817412992e Author: MTRNord <mtrnord1@gmail.com> Date: Fri, 7 Mar 2025 14:30:19 +0100 Add resource limits to draupnir Diffstat:
| M | apps/base/matrix/draupnir-fluffy/deployment.yaml | | | 67 | ++++++++++++++++++++++++++++++++++++++----------------------------- |
1 file changed, 38 insertions(+), 29 deletions(-)
diff --git a/apps/base/matrix/draupnir-fluffy/deployment.yaml b/apps/base/matrix/draupnir-fluffy/deployment.yaml @@ -34,43 +34,52 @@ spec: - image: gnuxie/draupnir:v2.2.0 imagePullPolicy: IfNotPresent livenessProbe: - failureThreshold: 3 - httpGet: - path: /healthz - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 30 - successThreshold: 1 - timeoutSeconds: 1 + failureThreshold: 3 + httpGet: + path: /healthz + port: 8080 + initialDelaySeconds: 60 + periodSeconds: 30 + successThreshold: 1 + timeoutSeconds: 1 name: mjolnir-fluffy-container + resources: + requests: + ephemeral-storage: 1024Mi + cpu: 100m + memory: 200Mi + limits: + ephemeral-storage: 2048Mi + cpu: 2000m + memory: 2000Mi readinessProbe: - httpGet: - path: /health - port: 8080 - initialDelaySeconds: 60 - periodSeconds: 30 + httpGet: + path: /health + port: 8080 + initialDelaySeconds: 60 + periodSeconds: 30 securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #runAsNonRoot: true + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + #runAsNonRoot: true volumeMounts: - - mountPath: /data/config/production.yaml - name: config-volume - subPath: production.yaml - - mountPath: /data/storage - name: storage - - mountPath: /tmp - name: tmp + - mountPath: /data/config/production.yaml + name: config-volume + subPath: production.yaml + - mountPath: /data/storage + name: storage + - mountPath: /tmp + name: tmp volumes: - configMap: - name: mjolnir-fluffy-config + name: mjolnir-fluffy-config name: config-volume - name: storage persistentVolumeClaim: - claimName: mjolnir-fluffy-persistent-storage + claimName: mjolnir-fluffy-persistent-storage - name: tmp emptyDir: - sizeLimit: 2048Mi + sizeLimit: 2048Mi