Skip to content

Commit 4120559

Browse files
committed
feat: Add optional hostNetwork support for Pods
1 parent a67a8cf commit 4120559

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/plex-media-server/templates/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ spec:
2121
annotations:
2222
{{- toYaml .Values.statefulSet.podAnnotations | nindent 8 }}
2323
spec:
24+
{{- if .Values.hostNetwork.enabled }}
25+
hostNetwork: true
26+
{{- end }}
2427
{{- if .Values.dnsConfig }}
2528
dnsConfig:
2629
{{- toYaml .Values.dnsConfig | nindent 8 }}

charts/plex-media-server/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ global:
1515
# -- Optional DNS configuration for the Pod
1616
dnsConfig: {}
1717

18+
hostNetwork:
19+
# -- Set to true to run the Pod in the host's network namespace.
20+
# This may be required for specific networking setups or accessing local resources.
21+
enabled: false
22+
1823
ingress:
1924
# -- Specify if an ingress resource for the pms server should be created or not
2025
enabled: false

0 commit comments

Comments
 (0)