paperless-gpt initial
This commit is contained in:
64
paperless-gpt/deploy.yaml
Normal file
64
paperless-gpt/deploy.yaml
Normal file
@@ -0,0 +1,64 @@
|
||||
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:0.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: {}
|
||||
Reference in New Issue
Block a user