Skip to content

Commit

Permalink
add support for using nodeport in kratos and kratos-selfservice-ui-no…
Browse files Browse the repository at this point in the history
…de charts
  • Loading branch information
leodotcloud committed Jan 9, 2024
1 parent d3ffdad commit 8c41012
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helm/charts/kratos-selfservice-ui-node/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
targetPort: http
protocol: TCP
name: {{ .Values.service.name }}
{{- if and (eq .Values.service.type "NodePort") (not (eq .Values.service.nodePort nil)) }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
selector:
app.kubernetes.io/name: {{ include "kratos-selfservice-ui-node.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
3 changes: 3 additions & 0 deletions helm/charts/kratos/templates/service-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
targetPort: http-admin
protocol: TCP
name: {{ .Values.service.admin.name }}
{{- if and (eq .Values.service.admin.type "NodePort") (not (eq .Values.service.admin.nodePort nil)) }}
nodePort: {{ .Values.service.admin.nodePort }}
{{- end }}
selector:
app.kubernetes.io/name: {{ include "kratos.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down
3 changes: 3 additions & 0 deletions helm/charts/kratos/templates/service-public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
targetPort: http-public
protocol: TCP
name: {{ .Values.service.public.name }}
{{- if and (eq .Values.service.public.type "NodePort") (not (eq .Values.service.public.nodePort nil)) }}
nodePort: {{ .Values.service.public.nodePort }}
{{- end }}
selector:
app.kubernetes.io/name: {{ include "kratos.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down

0 comments on commit 8c41012

Please sign in to comment.