diff --git a/manifests/manyfold/deployment.yaml b/manifests/manyfold/deployment.yaml index ad9097d..8bf536e 100644 --- a/manifests/manyfold/deployment.yaml +++ b/manifests/manyfold/deployment.yaml @@ -1,11 +1,10 @@ apiVersion: apps/v1 -kind: Deployment +kind: StatefulSet metadata: labels: app: manyfold name: manyfold spec: - replicas: 1 revisionHistoryLimit: 1 selector: matchLabels: @@ -23,7 +22,7 @@ spec: volumeMounts: - mountPath: "/libraries" name: manyfold-libraries - environment: + env: - name: PUID value: "1000" - name: PGID @@ -46,13 +45,28 @@ spec: valueFrom: secretKeyRef: name: db-app - key: pgpass + key: password - name: SECRET_KEY_BASE valueFrom: secretKeyRef: name: db-app key: password - name: REDIS_URL - value: redis://redis-master:6379/1 - volumes: - - name: manyfold-libraries + value: redis://default:A36B6jX4BG@redis-master:6379/1 + - name: MULTIUSER + value: "enabled" + - name: REGISTRATION + value: "enabled" + - name: FEDERATION + value: "enabled" + - name: SITE_NAME + value: "Openlab Augsburgs Manyfold" + + volumeClaimTemplates: + - metadata: + name: manyfold-libraries + spec: + accessModes: ["ReadWriteOnce"] + resources: + requests: + storage: 1Gi diff --git a/manifests/manyfold/ingress.yaml b/manifests/manyfold/ingress.yaml index 5c20a7a..9f9c0e8 100644 --- a/manifests/manyfold/ingress.yaml +++ b/manifests/manyfold/ingress.yaml @@ -4,6 +4,7 @@ metadata: name: manyfold annotations: cert-manager.io/cluster-issuer: le-prod + nginx.ingress.kubernetes.io/proxy-body-size: 50m spec: ingressClassName: nginx tls: