diff --git a/charts/karmada-dashboard/templates/karmada-dashboard-web-service.yaml b/charts/karmada-dashboard/templates/karmada-dashboard-web-service.yaml index 258099d..5eee255 100644 --- a/charts/karmada-dashboard/templates/karmada-dashboard-web-service.yaml +++ b/charts/karmada-dashboard/templates/karmada-dashboard-web-service.yaml @@ -12,5 +12,8 @@ spec: targetPort: http protocol: TCP name: http + {{- if and (eq .Values.web.service.type "NodePort") (not (empty .Values.web.service.nodePort)) }} + nodePort: {{ .Values.web.service.nodePort }} + {{- end }} selector: {{- include "karmada-dashboard.web.labels" . | nindent 4 }} diff --git a/charts/karmada-dashboard/values.yaml b/charts/karmada-dashboard/values.yaml index 46bd9f8..bc946e0 100644 --- a/charts/karmada-dashboard/values.yaml +++ b/charts/karmada-dashboard/values.yaml @@ -176,3 +176,4 @@ web: service: type: ClusterIP port: 8000 + # nodePort: 32000