Skip to content

Commit 5f6c030

Browse files
committed
ops: Support setting NodePort in helm charts
1 parent 026ce75 commit 5f6c030

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

deployment/kubernetes/charts/medcat-service-helm/templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ spec:
1111
targetPort: http
1212
protocol: TCP
1313
name: http
14+
{{- if (and (eq .Values.service.type "NodePort") ( .Values.service.nodePort)) }}
15+
nodePort: {{ .Values.service.nodePort }}
16+
{{- else }}
1417
selector:
1518
{{- include "medcat-service.selectorLabels" . | nindent 4 }}

deployment/kubernetes/charts/medcat-trainer-helm/templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ spec:
2727
type: {{ .Values.service.type }}
2828
ports:
2929
- port: {{ .Values.service.port }}
30+
{{- if (and (eq .Values.service.type "NodePort") ( .Values.service.nodePort)) }}
31+
nodePort: {{ .Values.service.nodePort }}
32+
{{- else }}
3033
targetPort: http
3134
protocol: TCP
3235
name: http

0 commit comments

Comments
 (0)