about summary refs log tree commit diff
path: root/bundles/paperless/files
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/paperless/files')
-rw-r--r--bundles/paperless/files/kube.yaml52
1 files changed, 29 insertions, 23 deletions
diff --git a/bundles/paperless/files/kube.yaml b/bundles/paperless/files/kube.yaml
index fc51313..02d6560 100644
--- a/bundles/paperless/files/kube.yaml
+++ b/bundles/paperless/files/kube.yaml
@@ -12,8 +12,10 @@ data:
   # use authelia
   PAPERLESS_APPS: allauth.socialaccount.providers.openid_connect
   PAPERLESS_LOGOUT_REDIRECT_URL: https://login.gzr.im/logout
-  PAPERLESS_DISABLE_REGULAR_LOGIN: false
-  PAPERLESS_REDIRECT_LOGIN_TO_SSO: false
+  PAPERLESS_DISABLE_REGULAR_LOGIN: true
+  PAPERLESS_REDIRECT_LOGIN_TO_SSO: true
+  # monitoring
+  # PAPERLESS_ENABLE_FLOWER: true
 ---
 apiVersion: v1
 kind: Pod
@@ -36,25 +38,13 @@ spec:
   restartPolicy: Always
   dnsPolicy: Default
   containers:
-    - name: broker
-      image: docker.io/library/redis:7
-      ports:
-        - containerPort: 6379
-          protocol: TCP
-      volumeMounts:
-        - name: broker-data
-          mountPath: /data
-      resources:
-        limits:
-          cpu: 100m
-          memory: 128Mi
-      # TODO: healthchecks
-
     - name: paperless
-      image: ghcr.io/paperless-ngx/paperless-ngx:2.18.4
+      image: ghcr.io/paperless-ngx/paperless-ngx:2.19.5
       ports:
         - containerPort: 8000
           protocol: TCP
+        # - containerPort: 5555
+        #   protocol: TCP
       envFrom:
         - configMapRef:
             name: paperless
@@ -69,8 +59,7 @@ spec:
           mountPath: /paperless/data
       resources:
         limits:
-          cpu: 100m
-          memory: 128Mi
+          memory: 256Mi
       livenessProbe:
         httpGet:
           path: /
@@ -78,11 +67,24 @@ spec:
         initialDelaySeconds: 30
         timeoutSeconds: 30
 
+    - name: broker
+      image: index.docker.io/library/redis:8
+      ports:
+        - containerPort: 6379
+          protocol: TCP
+      volumeMounts:
+        - name: broker-data
+          mountPath: /data
+      resources:
+        limits:
+          cpu: 100m
+          memory: 512Mi
+      livenessProbe:
+        exec:
+          command: ["redis-cli", "--raw", "incr", "ping"]
+
+
   volumes:
-    - name: broker-data
-      hostPath:
-        path: /var/lib/paperless/broker
-        type: DirectoryOrCreate
     - name: paperless-data
       hostPath:
         path: /var/lib/paperless/data
@@ -95,3 +97,7 @@ spec:
       hostPath:
         path: /media/hayasui/documents/paperless
         type: Directory
+    - name: broker-data
+      hostPath:
+        path: /var/lib/paperless/broker
+        type: DirectoryOrCreate