Skip to content

Commit 7c503d3

Browse files
author
Andrea Scarpino
committed
openmetadata: allow to define service nodeport
1 parent 7819546 commit 7c503d3

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

charts/openmetadata/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,10 @@ helm install openmetadata open-metadata/openmetadata --values <<path-to-values-f
299299
| testConnection.resources | object | `{}` |
300300
| securityContext | object | `{}` |
301301
| service.adminPort | string | `8586` |
302+
| service.adminNodePort | int | `` |
302303
| service.annotations | object | `{}` |
303304
| service.port | int | `8585` |
305+
| service.nodePort | int | `` |
304306
| service.type | string | `"ClusterIP"` |
305307
| serviceAccount.annotations | object | `{}` |
306308
| serviceAccount.create | bool | `true` |

charts/openmetadata/templates/service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ spec:
1313
ports:
1414
- port: {{ .Values.service.port }}
1515
targetPort: http
16+
{{- if and (eq "NodePort" .Values.service.type) .Values.service.nodePort }}
17+
nodePort: {{ .Values.service.nodePort }}
18+
{{- end }}
1619
protocol: TCP
1720
name: http
1821
- port: {{ .Values.service.adminPort }}
1922
targetPort: http-admin
23+
{{- if and (eq "NodePort" .Values.service.type) .Values.service.adminNodePort }}
24+
nodePort: {{ .Values.service.adminNodePort }}
25+
{{- end }}
2026
protocol: TCP
2127
name: http-admin
2228
selector:

charts/openmetadata/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,9 @@ securityContext: {}
485485
service:
486486
type: ClusterIP
487487
port: 8585
488+
# nodePort: 32085
488489
adminPort: 8586
490+
# adminNodePort: 32086
489491
annotations: {}
490492

491493
# Service monitor for Prometheus metrics

0 commit comments

Comments
 (0)