Skip to content

Commit

Permalink
added externalTrafficPolicy to service
Browse files Browse the repository at this point in the history
  • Loading branch information
koiralasandesh authored and cilindrox committed Dec 3, 2024
1 parent f004951 commit 61b6ed5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/plex-media-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.0
version: 0.6.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
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 @@ -10,6 +10,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: 32400
Expand Down
9 changes: 9 additions & 0 deletions charts/plex-media-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,15 @@ service:
# Port to use when type of service is "NodePort" (32400 by default)
# nodePort: 32400

# when NodePort is used, plex is unable to determine user IP
# all traffic seems to come from within the cluster
# setting this to 'Local' will allow Plex to determine the actual IP of user.
# used to determine bitrate for remote transcoding
# but the pods can only be accessed by the Node IP where the pod is running
# Read more here: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
# https://access.redhat.com/solutions/7028639
# externalTrafficPolicy: Local

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

Expand Down

0 comments on commit 61b6ed5

Please sign in to comment.