diff --git a/charts/hami-webui/README.md b/charts/hami-webui/README.md index 6c90ec02..a0372b3c 100644 --- a/charts/hami-webui/README.md +++ b/charts/hami-webui/README.md @@ -101,6 +101,7 @@ The command removes all the Kubernetes components associated with the chart and | securityContext | object | `{}` | | | service.port | int | `3000` | | | service.type | string | `"ClusterIP"` | | +| service.nodePort | int | `30000` | | | serviceAccount.annotations | object | `{}` | | | serviceAccount.create | bool | `true` | | | serviceAccount.name | string | `""` | | diff --git a/charts/hami-webui/templates/service.yaml b/charts/hami-webui/templates/service.yaml index 132bb08f..180def54 100644 --- a/charts/hami-webui/templates/service.yaml +++ b/charts/hami-webui/templates/service.yaml @@ -10,6 +10,9 @@ spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} targetPort: http protocol: TCP name: http diff --git a/charts/hami-webui/values.yaml b/charts/hami-webui/values.yaml index f7411212..a2c1071f 100644 --- a/charts/hami-webui/values.yaml +++ b/charts/hami-webui/values.yaml @@ -45,6 +45,7 @@ securityContext: {} service: type: ClusterIP port: 3000 + nodePort: 30000 ingress: enabled: false