cluster

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

commit b6799dbbd0a3ba9ee1eedae286749e6528d115e5
parent 96f611ce31edb9bef4ef835ef2ca5a4baa15fbe9
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 17 Jan 2025 23:48:50 +0100

Update freifunk draupnir as well

Diffstat:
Mapps/base/matrix/draupnir-freifunk/deployment.yaml | 71++++++++++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 44 insertions(+), 27 deletions(-)

diff --git a/apps/base/matrix/draupnir-freifunk/deployment.yaml b/apps/base/matrix/draupnir-freifunk/deployment.yaml @@ -1,3 +1,15 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: mjolnir-freifunk-persistent-storage + namespace: matrix +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 512Mi +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -19,41 +31,46 @@ spec: app: mjolnir-freifunk spec: containers: - - image: gnuxie/draupnir:latest + - image: gnuxie/draupnir:v2.0.0 imagePullPolicy: Always 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 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: /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 + - name: tmp emptyDir: - sizeLimit: 2048Mi + sizeLimit: 2048Mi