mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-27 10:13:05 +01:00
--------- Co-authored-by: Reese Jenner <reesevader@hotmail.co.uk> Co-authored-by: Yuhong Sun <yuhongsun96@gmail.com>
37 lines
1015 B
YAML
37 lines
1015 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: background-deployment
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: background
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: background
|
|
spec:
|
|
containers:
|
|
- name: background
|
|
image: danswer/danswer-backend:latest
|
|
imagePullPolicy: IfNotPresent
|
|
command: ["/usr/bin/supervisord"]
|
|
# There are some extra values since this is shared between services
|
|
# There are no conflicts though, extra env variables are simply ignored
|
|
envFrom:
|
|
- configMapRef:
|
|
name: env-configmap
|
|
volumeMounts:
|
|
- name: dynamic-storage
|
|
mountPath: /home/storage
|
|
- name: file-connector-storage
|
|
mountPath: /home/file_connector_storage
|
|
volumes:
|
|
- name: dynamic-storage
|
|
persistentVolumeClaim:
|
|
claimName: dynamic-pvc
|
|
- name: file-connector-storage
|
|
persistentVolumeClaim:
|
|
claimName: file-connector-pvc
|