Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart: Define port for NodePort #100

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
alphayax marked this conversation as resolved.
Show resolved Hide resolved

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

Expand Down
Loading