Skip to content

Commit

Permalink
Helm chart: Add the ability to define the node port to use when servi…
Browse files Browse the repository at this point in the history
…ce is NodePort. Default is 32400.
  • Loading branch information
alphayax authored and cilindrox committed Feb 5, 2024
1 parent 0cd70b5 commit c8fa8af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/plex-media-server/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
ports:
- port: {{ .Values.service.port }}
targetPort: 32400
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ default "32400" .Values.service.nodePort }}
{{- end }}
protocol: TCP
name: pms
selector:
Expand Down
3 changes: 3 additions & 0 deletions charts/plex-media-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ service:
type: ClusterIP
port: 32400

# Port to use when type of service is "NodePort" (32400 by default)
#nodePort: 32400

# optional extra annotations to add to the service resource
annotations: {}

Expand Down

0 comments on commit c8fa8af

Please sign in to comment.