Skip to content

Commit

Permalink
feat: Updated deployment/kubernetes/nginx-service-
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Dec 24, 2023
1 parent 3bb7504 commit eb5407a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions deployment/kubernetes/nginx-service-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
apiVersion: v1
kind: Service
metadata:
name: nginx-service
name: {{ include "danswer.fullname" . }}-nginx
spec:
selector:
app: nginx
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
port: {{ .Values.nginx.service.port }}
targetPort: {{ .Values.nginx.service.port }}
- name: danswer
protocol: TCP
port: 3000
targetPort: 80
type: LoadBalancer
type: {{ .Values.nginx.service.type }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
name: {{ include "danswer.fullname" . }}-nginx
spec:
replicas: 1
replicas: {{ .Values.nginx.replicaCount }}
selector:
matchLabels:
app: nginx
Expand All @@ -32,14 +32,14 @@ spec:
spec:
containers:
- name: nginx
image: nginx:1.23.4-alpine
image: "{{ .Values.nginx.image.repository }}:{{ .Values.nginx.image.tag }}"
ports:
- containerPort: 80
env:
- name: DOMAIN
valueFrom:
configMapKeyRef:
name: env-configmap
name: {{ include "danswer.configmapName" . }}
key: DOMAIN
volumeMounts:
- name: nginx-conf
Expand All @@ -52,4 +52,4 @@ spec:
volumes:
- name: nginx-conf
configMap:
name: nginx-configmap
name: {{ include "danswer.configmapName" . }}

0 comments on commit eb5407a

Please sign in to comment.