cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 217eaee63c0841dcf6242f613ae18b817412992e
parent ef0512e3ab6db43d9ca93b886ce3ea204e17b9d0
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri,  7 Mar 2025 14:21:21 +0100

Add resource limits to draupnir

Diffstat:
Mapps/base/matrix/draupnir-freifunk/deployment.yaml | 68++++++++++++++++++++++++++++++++++++++------------------------------
1 file changed, 38 insertions(+), 30 deletions(-)

diff --git a/apps/base/matrix/draupnir-freifunk/deployment.yaml b/apps/base/matrix/draupnir-freifunk/deployment.yaml @@ -32,45 +32,53 @@ spec: spec: containers: - 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-freifunk-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-freifunk-config + name: mjolnir-freifunk-config name: config-volume - name: storage persistentVolumeClaim: - claimName: mjolnir-freifunk-persistent-storage + claimName: mjolnir-freifunk-persistent-storage - name: tmp emptyDir: - sizeLimit: 2048Mi + sizeLimit: 2048Mi