64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: paperless-gpt
|
|
namespace: paperless-gpt
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: paperless-gpt
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: paperless-gpt
|
|
spec:
|
|
containers:
|
|
- name: paperless-gpt
|
|
image: icereed/paperless-gpt:v0.24.0
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
|
|
envFrom:
|
|
- configMapRef:
|
|
name: paperless-gpt
|
|
|
|
env:
|
|
- name: PAPERLESS_API_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: paperless-gpt
|
|
key: PAPERLESS_API_TOKEN
|
|
- name: OPENAI_API_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: paperless-gpt
|
|
key: OPENAI_API_KEY
|
|
|
|
volumeMounts:
|
|
- name: prompts
|
|
mountPath: /app/prompts
|
|
|
|
# Optional: nur sinnvoll, wenn CREATE_LOCAL_HOCR/CREATE_LOCAL_PDF true sind
|
|
- name: hocr
|
|
mountPath: /app/hocr
|
|
- name: pdf
|
|
mountPath: /app/pdf
|
|
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
|
|
volumes:
|
|
- name: prompts
|
|
persistentVolumeClaim:
|
|
claimName: nfs-paperless-gpt-prompts
|
|
- name: hocr
|
|
emptyDir: {}
|
|
- name: pdf
|
|
emptyDir: {} |