Skip to content

Commit

Permalink
fix(unleash-edge): Make target port configurable (#109)
Browse files Browse the repository at this point in the history
fixes: #106
  • Loading branch information
Christopher Kolstad authored Nov 23, 2023
1 parent 454bd41 commit 64fdb11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/unleash-edge/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: unleash-edge
description: A Helm chart for deploying Unleash Edge to kubernetes
icon: https://docs.getunleash.io/img/logo.svg
type: application
version: 2.1.1
version: 2.1.2

appVersion: "v16.0.3"
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/unleash-edge/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/unleash-edge/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ service:
# Supported types: ClusterIP, NodePort, LoadBalancer
type: ClusterIP
port: 3063
# 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: ""

Expand Down

0 comments on commit 64fdb11

Please sign in to comment.