Files
danswer/deployment/kubernetes/background-deployment.yaml
pablodanswer d66b81a902 Feat/certificate (#2998)
* first pass

* simplify

* remove now unneeded COPY command

* minor clean up

* k

* nit
2024-11-01 19:34:52 +00:00

48 lines
1.3 KiB
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",
"-c",
"/etc/supervisor/conf.d/supervisord.conf",
]
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: danswer-secrets
key: redis_password
envFrom:
- configMapRef:
name: env-configmap
# Uncomment the following lines if you need to include a custom CA certificate
# Optional volume mount for CA certificate
# volumeMounts:
# - name: my-ca-cert-volume
# mountPath: /etc/ssl/certs/custom-ca.crt
# subPath: my-ca.crt
# Optional volume for CA certificate
# volumes:
# - name: my-cas-cert-volume
# secret:
# secretName: my-ca-cert
# items:
# - key: my-ca.crt
# path: my-ca.crt