Skip to content

Commit 2314cf7

Browse files
committed
fix(Helm): add configurable NodePort support for web service
1 parent 6eceab8 commit 2314cf7

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

helm/templates/web/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ spec:
1010
- port: {{ .Values.web.service.port }}
1111
targetPort: {{ .Values.web.service.targetPort }}
1212
protocol: {{ .Values.web.service.protocol }}
13+
{{- if eq .Values.web.service.type "NodePort" }}
14+
nodePort: {{ .Values.web.service.nodePort }}
15+
{{- end }}
1316
selector:
1417
{{- include "web.labels" . | nindent 4 }}

helm/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ web:
1414
port: 80
1515
targetPort: 8080
1616
protocol: TCP
17+
nodePort: 30080
1718
environment:
1819
OPENAI_API_KEY: ""
1920
nodeSelector: {}

0 commit comments

Comments
 (0)