Compare commits

...

2 Commits

Author SHA1 Message Date
68d1b04223 Update Paperless AI Helm chart version and configuration
All checks were successful
Build Helm Chart / helm-package (push) Successful in 4s
Updated the Paperless AI Helm chart version from 0.1.4-test1 to 0.1.5
to reflect the latest changes. The environment variable configuration
for PUID and PGID has been updated from 0 to 1000 and 2000, respectively,
to align with common user and group IDs used within Docker containers.
Additionally, the security context for the pod is now enabled to
enhance security practices by running the container with the
specified user and group IDs. This change may impact existing
deployments that relied on the previous settings.
2025-11-25 14:02:08 +01:00
2d67af32a2 Add support for logs directory in paperless-ai chart
All checks were successful
Build Helm Chart / helm-package (push) Successful in 5s
This commit introduces a new volume mount for a logs directory in the
paperless-ai Helm chart. The deployment configuration is updated to
include a `logs-dir` volume that is mounted at `/app/logs`, allowing
for the collection and management of logs generated by the application.
Additionally, the version of the chart has been incremented to
`0.1.4-test1` to reflect this change.

The build workflow is also modified to trigger on pushes to the
`patch-paperless-ai` branch, ensuring that changes can be tested
separately from the main branch. These adjustments enhance
observability and facilitate better troubleshooting by storing logs
in a dedicated directory. No breaking changes are introduced.
2025-11-25 13:51:44 +01:00
3 changed files with 12 additions and 6 deletions

View File

@@ -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.1.4
version: 0.1.5
appVersion: 3.0.9
keywords:
- paperless-ai

View File

@@ -53,8 +53,10 @@ spec:
- name: {{ $key }} # Name der Umgebungsvariable.
value: {{ $value | quote }} # Wert der Umgebungsvariable.
{{- end }}
{{- if .Values.persistence.enabled }}
volumeMounts:
- name: logs-dir
mountPath: /app/logs
{{- if .Values.persistence.enabled }}
- name: paperless-ai-data # Name des Volumes, das gemountet werden soll.
mountPath: /app/data # Der Pfad im Container, an dem das Volume gemountet wird.
{{- end }}
@@ -72,8 +74,12 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }} # Toleranzen für die Pod-Platzierung auf Tainted Nodes.
{{- end }}
{{- if .Values.persistence.enabled }}
volumes:
- name: logs-dir
emptyDir:
sizeLimit: 100Mi
{{- if .Values.persistence.enabled }}
- name: paperless-ai-data # Definiert ein Volume mit dem Namen 'paperless-ai-data'.
persistentVolumeClaim:
claimName: {{ include "paperless-ai.fullname" . }}-data # Verweist auf den Persistent Volume Claim.

View File

@@ -53,8 +53,8 @@ service:
targetPort: 3000
env:
PUID: 0 # 1000
PGID: 0 # 2000
PUID: 1000
PGID: 2000
PAPERLESS_AI_PORT: 3000
RAG_SERVICE_URL: http://localhost:8000
RAG_SERVICE_ENABLED: true
@@ -79,7 +79,7 @@ readinessProbe:
# Sicherheitskontext-Einstellungen für Pod und Container.
securityContext:
enabled: false
enabled: true
pod:
runAsUser: 1000
runAsGroup: 2000