Skip to content

Commit

Permalink
Merge pull request #27 from devopshobbies/helm
Browse files Browse the repository at this point in the history
fix(Helm): add configurable NodePort support for web service
  • Loading branch information
mohammadll authored Nov 4, 2024
2 parents 6eceab8 + 2314cf7 commit acf28db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helm/templates/web/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ spec:
- port: {{ .Values.web.service.port }}
targetPort: {{ .Values.web.service.targetPort }}
protocol: {{ .Values.web.service.protocol }}
{{- if eq .Values.web.service.type "NodePort" }}
nodePort: {{ .Values.web.service.nodePort }}
{{- end }}
selector:
{{- include "web.labels" . | nindent 4 }}
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ web:
port: 80
targetPort: 8080
protocol: TCP
nodePort: 30080
environment:
OPENAI_API_KEY: ""
nodeSelector: {}
Expand Down

0 comments on commit acf28db

Please sign in to comment.