Skip to content

Commit

Permalink
Add support for nodeport
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Misencik <[email protected]>
  • Loading branch information
SimonMisencik committed Oct 24, 2023
1 parent 9b61f72 commit 5731407
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/krakend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: krakend
description: FRINX KrakenD API Gateway for FRINX-machine
icon: https://avatars.githubusercontent.com/u/23452093?s=200&v=4
type: application
version: 2.9.1
version: 2.10.0
appVersion: "1.0.5"
maintainers:
- name: FRINX
Expand All @@ -12,8 +12,8 @@ annotations:
- name: krakend
image: frinx/krakend:1.0.5
artifacthub.io/changes: |
- kind: fixed
description: remove hard-coded content_security_policy. Will be configurable in the future
- kind: added
description: add support for nodePort service
links:
- name: GitHub PR
url: https://github.com/FRINXio/helm-charts/pull/304
4 changes: 4 additions & 0 deletions charts/krakend/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ spec:
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
nodePort: {{ .Values.service.nodePort }}
protocol: TCP
name: http
selector:
Expand Down
1 change: 1 addition & 0 deletions charts/krakend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ service:
type: ClusterIP
port: 8080
targetPort: 8080
nodePort: 30000

ingress:
enabled: false
Expand Down

0 comments on commit 5731407

Please sign in to comment.