Add support for logs directory in paperless-ai chart
All checks were successful
Build Helm Chart / helm-package (push) Successful in 5s
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.
This commit is contained in:
@@ -3,6 +3,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- patch-papaerless-ai
|
||||||
paths:
|
paths:
|
||||||
- "charts/paperless-ai/Chart.yaml"
|
- "charts/paperless-ai/Chart.yaml"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: paperless-ai
|
name: paperless-ai
|
||||||
description: Ein Helm Chart für Paperless AI, basierend auf der Docker Compose Konfiguration.
|
description: Ein Helm Chart für Paperless AI, basierend auf der Docker Compose Konfiguration.
|
||||||
version: 0.1.4
|
version: 0.1.4-test1
|
||||||
appVersion: 3.0.9
|
appVersion: 3.0.9
|
||||||
keywords:
|
keywords:
|
||||||
- paperless-ai
|
- paperless-ai
|
||||||
|
|||||||
@@ -53,8 +53,10 @@ spec:
|
|||||||
- name: {{ $key }} # Name der Umgebungsvariable.
|
- name: {{ $key }} # Name der Umgebungsvariable.
|
||||||
value: {{ $value | quote }} # Wert der Umgebungsvariable.
|
value: {{ $value | quote }} # Wert der Umgebungsvariable.
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.persistence.enabled }}
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
- name: logs-dir
|
||||||
|
mountPath: /app/logs
|
||||||
|
{{- if .Values.persistence.enabled }}
|
||||||
- name: paperless-ai-data # Name des Volumes, das gemountet werden soll.
|
- name: paperless-ai-data # Name des Volumes, das gemountet werden soll.
|
||||||
mountPath: /app/data # Der Pfad im Container, an dem das Volume gemountet wird.
|
mountPath: /app/data # Der Pfad im Container, an dem das Volume gemountet wird.
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -72,8 +74,12 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }} # Toleranzen für die Pod-Platzierung auf Tainted Nodes.
|
{{- toYaml . | nindent 8 }} # Toleranzen für die Pod-Platzierung auf Tainted Nodes.
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.persistence.enabled }}
|
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: logs-dir
|
||||||
|
emptyDir:
|
||||||
|
sizeLimit: 100Mi
|
||||||
|
{{- if .Values.persistence.enabled }}
|
||||||
- name: paperless-ai-data # Definiert ein Volume mit dem Namen 'paperless-ai-data'.
|
- name: paperless-ai-data # Definiert ein Volume mit dem Namen 'paperless-ai-data'.
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ include "paperless-ai.fullname" . }}-data # Verweist auf den Persistent Volume Claim.
|
claimName: {{ include "paperless-ai.fullname" . }}-data # Verweist auf den Persistent Volume Claim.
|
||||||
|
|||||||
Reference in New Issue
Block a user