Skip to content

Commit 45498a5

Browse files
committed
k
1 parent 9ecf237 commit 45498a5

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

deployment/kubernetes/api_server-service-deployment.yaml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ spec:
3434
- "/bin/sh"
3535
- "-c"
3636
- |
37-
if [ -f /usr/local/share/ca-certificates/my-ca.crt ]; then
38-
update-ca-certificates;
39-
fi &&
4037
alembic upgrade head &&
4138
echo "Starting Danswer Api Server" &&
4239
uvicorn danswer.main:app --host 0.0.0.0 --port 8080
4340
ports:
4441
- containerPort: 8080
45-
# Existing environment variables
42+
# There are some extra values since this is shared between services
43+
# There are no conflicts though, extra env variables are simply ignored
4644
env:
4745
- name: OAUTH_CLIENT_ID
4846
valueFrom:
@@ -62,17 +60,3 @@ spec:
6260
envFrom:
6361
- configMapRef:
6462
name: env-configmap
65-
# Optional volume mount for CA certificate - feel free to comment out
66-
# If not necessary
67-
volumeMounts:
68-
- name: my-ca-cert-volume
69-
mountPath: /etc/ssl/certs/my-ca.crt
70-
subPath: my-ca.crt
71-
# Optional volume for CA certificate
72-
volumes:
73-
- name: my-ca-cert-volume
74-
secret:
75-
secretName: my-ca-cert
76-
items:
77-
- key: my-ca.crt
78-
path: my-ca.crt

0 commit comments

Comments
 (0)