From ef155f7733ec6ae67e41bc3bef418ba1c33f1d36 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Sun, 6 Jul 2025 17:32:25 +0200 Subject: [PATCH] Update Paperless AI Helm chart version and configuration Updated the Paperless AI Helm chart to version 0.3.0 to reflect the latest changes and improvements. Modified the deployment.yaml by adding liveness and readiness probes, which enhance the resilience and monitoring of the application by checking its availability and readiness to serve traffic. Additionally, adjusted the values.yaml file to set the service account creation to false and commented out the PUID and PGID environment variables for increased flexibility and to avoid potential permission issues during deployment. Note that the securityContext settings for the Pod and Container have also been changed to disable the pod's user/group settings, which may affect how the application interacts with resources. --- charts/paperless-ai/Chart.yaml | 2 +- charts/paperless-ai/templates/deployment.yaml | 7 +++++++ charts/paperless-ai/values.yaml | 21 +++++++++++++++---- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/charts/paperless-ai/Chart.yaml b/charts/paperless-ai/Chart.yaml index 5d771d7..77dc30d 100644 --- a/charts/paperless-ai/Chart.yaml +++ b/charts/paperless-ai/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: paperless-ai description: Ein Helm Chart für Paperless AI, basierend auf der Docker Compose Konfiguration. -version: 0.2.0 +version: 0.3.0 appVersion: 3.0.7 keywords: - paperless-ai diff --git a/charts/paperless-ai/templates/deployment.yaml b/charts/paperless-ai/templates/deployment.yaml index c6d9940..57ec226 100644 --- a/charts/paperless-ai/templates/deployment.yaml +++ b/charts/paperless-ai/templates/deployment.yaml @@ -44,6 +44,13 @@ spec: - name: http # Name des Ports. containerPort: {{ .Values.service.targetPort }} # Der Port, der im Container geöffnet ist. protocol: TCP # Das Protokoll des Ports. + livenessProbe: + {{- toYaml .Values.livenessProbe | nindent 12 }} + readinessProbe: + {{- toYaml .Values.readinessProbe | nindent 12 }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.envs }} env: {{- range $key, $value := .Values.env }} - name: {{ $key }} # Name der Umgebungsvariable. diff --git a/charts/paperless-ai/values.yaml b/charts/paperless-ai/values.yaml index 9f45d72..10d3487 100644 --- a/charts/paperless-ai/values.yaml +++ b/charts/paperless-ai/values.yaml @@ -6,7 +6,7 @@ image: tag: "" serviceAccount: - create: true + create: false annotations: {} name: "" @@ -16,8 +16,8 @@ service: targetPort: 30000 env: - PUID: 1027 - PGID: 100 + # PUID: 1027 + # PGID: 100 PAPERLESS_AI_PORT: 30000 # Konfiguration für persistente Speicherung (Persistent Volume Claim). @@ -27,9 +27,22 @@ persistence: accessMode: ReadWriteOnce size: 1Gi +livenessProbe: + initialDelaySeconds: 60 + httpGet: + path: / + # path: /health + port: http +readinessProbe: + initialDelaySeconds: 60 + httpGet: + path: / + # path: /health + port: http + # Sicherheitskontext-Einstellungen für Pod und Container. securityContext: - enabled: true + enabled: false pod: runAsUser: 1027 runAsGroup: 100