All checks were successful
Build Helm Chart / helm-package (push) Successful in 3s
This commit introduces several significant changes to the Paperless AI Helm chart: - Updated the version from 0.5.0 to 0.6.0 in `Chart.yaml` to reflect the new additions. - Added a new template `paperlessApiSecret.yaml` to define a Kubernetes Secret for the Paperless API token. This allows secure storage of the API token, which is now a required value for communication with the Paperless application. - Introduced a new function in `_helpers.tpl` called `generateEnv` that dynamically generates a `.env` file from various configuration values in `values.yaml`. This includes settings for the Paperless API URL, AI provider, tagging options, scanning intervals, and more. - Updated `values.yaml` to include necessary configurations for the Paperless API, OpenAI, and other related settings, making it easier for users to configure the chart per their requirements. - Adjusted resource limits and initial probe delays for improved performance and quicker health checks. These enhancements provide better configurability and facilitate secure management of sensitive credentials, thereby improving user experience and application reliability.
132 lines
2.7 KiB
YAML
132 lines
2.7 KiB
YAML
# paperless-ai config
|
|
paperless:
|
|
apiUrl: "http://paperless-ngx:8000"
|
|
apiToken:
|
|
|
|
ai:
|
|
provider: "openai"
|
|
addProcessedTag: yes
|
|
processedTagName: ai-processed
|
|
|
|
prompt:
|
|
useTags: yes
|
|
tags: Rechnung,Kontoauszug,Vertrag,Arbeitgeber
|
|
|
|
openAi:
|
|
apiKey:
|
|
model: "gpt-4o-mini"
|
|
|
|
ollama:
|
|
apiUrl: ""
|
|
model: ""
|
|
|
|
scanInterval: "*/30 * * * *"
|
|
|
|
systemPrompt: |-
|
|
Return the result EXCLUSIVELY as a JSON object. The Tags and Title MUST be in the language that is used in the document.:
|
|
|
|
{
|
|
"title": "xxxxx",
|
|
"correspondent": "xxxxxxxx",
|
|
"tags": ["Tag1", "Tag2", "Tag3", "Tag4"],
|
|
"document_date": "YYYY-MM-DD",
|
|
"language": "en/de/es/..."
|
|
}
|
|
processPredefinedDocuments: "no"
|
|
tags: "indexed,indexed2"
|
|
|
|
replicaCount: 1
|
|
|
|
image:
|
|
repository: clusterzx/paperless-ai
|
|
pullPolicy: IfNotPresent
|
|
tag: ""
|
|
|
|
serviceAccount:
|
|
create: false
|
|
annotations: {}
|
|
name: ""
|
|
|
|
service:
|
|
type: ClusterIP
|
|
port: 30000
|
|
targetPort: 30000
|
|
|
|
env:
|
|
PUID: 1000
|
|
PGID: 2000
|
|
PAPERLESS_AI_PORT: 30000
|
|
|
|
# Konfiguration für persistente Speicherung (Persistent Volume Claim).
|
|
persistence:
|
|
enabled: true
|
|
storageClassName: ""
|
|
accessMode: ReadWriteOnce
|
|
size: 1Gi
|
|
|
|
livenessProbe:
|
|
initialDelaySeconds: 30
|
|
httpGet:
|
|
path: /
|
|
# path: /health
|
|
port: http
|
|
readinessProbe:
|
|
initialDelaySeconds: 30
|
|
httpGet:
|
|
path: /
|
|
# path: /health
|
|
port: http
|
|
|
|
# Sicherheitskontext-Einstellungen für Pod und Container.
|
|
securityContext:
|
|
enabled: false
|
|
pod:
|
|
runAsUser: 1000
|
|
runAsGroup: 2000
|
|
fsGroup: 2000
|
|
container:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
|
|
# Konfiguration für Horizontal Pod Autoscaling (HPA).
|
|
autoscaling:
|
|
enabled: false
|
|
minReplicas: 1
|
|
maxReplicas: 10
|
|
targetCPUUtilizationPercentage: 80
|
|
|
|
# Ressourcenanforderungen und -limits für den Container.
|
|
resources:
|
|
limits:
|
|
cpu: 300m
|
|
memory: 640Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
|
|
# Node-Selector für die Pod-Platzierung.
|
|
nodeSelector: {}
|
|
|
|
# Toleranzen für die Pod-Platzierung auf Tainted Nodes.
|
|
tolerations: []
|
|
|
|
# Affinitätsregeln für die Pod-Platzierung.
|
|
affinity: {}
|
|
|
|
# Ingress-Konfiguration (optional, aber üblich für Webanwendungen).
|
|
ingress:
|
|
enabled: false
|
|
className: "" # Der Ingress-Klassenname (z.B. nginx, traefik).
|
|
annotations: {}
|
|
hosts:
|
|
- host: chart-example.local # Beispiel-Hostname.
|
|
paths:
|
|
- path: / # Der Pfad, der weitergeleitet werden soll.
|
|
pathType: ImplementationSpecific # Der Typ des Pfades (Prefix, Exact, ImplementationSpecific).
|
|
tls: [] # TLS-Konfiguration für den Ingress.
|
|
# - secretName: chart-example-tls # Name des Secrets, das das TLS-Zertifikat enthält.
|
|
# hosts:
|
|
# - chart-example.local # Hostnamen, für die das Zertifikat gültig ist.
|