Skip to content

Commit

Permalink
feat: Updated deployment/kubernetes/api_server-ser
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Dec 24, 2023
1 parent 1a40e68 commit 2f97e5d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions deployment/kubernetes/api_server-service-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
apiVersion: v1
kind: Service
metadata:
name: api-server-service
name: {{ include "danswer.fullname" . }}-api-server
spec:
selector:
app: api-server
ports:
- name: api-server-port
- name: http
protocol: TCP
port: 80
targetPort: 8080
type: ClusterIP
port: {{ .Values.apiServer.service.port }}
targetPort: {{ .Values.apiServer.containerPort }}
type: {{ .Values.apiServer.service.type }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-server-deployment
name: {{ include "danswer.fullname" . }}-api-server
spec:
replicas: 1
replicas: {{ .Values.apiServer.replicaCount }}
selector:
matchLabels:
app: api-server
Expand All @@ -28,8 +28,8 @@ spec:
spec:
containers:
- name: api-server
image: danswer/danswer-backend:latest
imagePullPolicy: IfNotPresent
image: "{{ .Values.apiServer.image.repository }}:{{ .Values.apiServer.image.tag }}"
imagePullPolicy: {{ .Values.apiServer.image.pullPolicy }}
command:
- "/bin/sh"
- "-c"
Expand All @@ -38,7 +38,7 @@ spec:
echo "Starting Danswer Api Server" &&
uvicorn danswer.main:app --host 0.0.0.0 --port 8080
ports:
- containerPort: 8080
- containerPort: {{ .Values.apiServer.containerPort }}
# There are some extra values since this is shared between services
# There are no conflicts though, extra env variables are simply ignored
envFrom:
Expand Down

0 comments on commit 2f97e5d

Please sign in to comment.