diff --git a/charts/unleash/Chart.yaml b/charts/unleash/Chart.yaml index b91577b..72d0639 100644 --- a/charts/unleash/Chart.yaml +++ b/charts/unleash/Chart.yaml @@ -5,7 +5,7 @@ icon: https://docs.getunleash.io/img/logo.svg type: application -version: 4.2.0 +version: 4.2.1 appVersion: "5.12.2" diff --git a/charts/unleash/templates/service.yaml b/charts/unleash/templates/service.yaml index 5f6eba2..3eac537 100644 --- a/charts/unleash/templates/service.yaml +++ b/charts/unleash/templates/service.yaml @@ -12,7 +12,7 @@ spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} - targetPort: http + targetPort: {{ .Values.service.targetPort | default .Values.service.port }} {{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePort)) }} nodePort: {{ .Values.service.nodePort }} {{- end }} diff --git a/charts/unleash/values.yaml b/charts/unleash/values.yaml index b644e26..a8e1f3e 100644 --- a/charts/unleash/values.yaml +++ b/charts/unleash/values.yaml @@ -236,6 +236,8 @@ service: # Supported types: ClusterIP, NodePort, LoadBalancer type: ClusterIP port: 4242 + # target port will be set to port if not set + targetPort: "" # nodePort is optional and only used when service.type is NodePort or LoadBalancer nodePort: "" annotations: {}