Skip to content

Commit d3a71cb

Browse files
keeneisgoodcilindrox
authored andcommitted
feat(network): Add configurable hostNetwork and dnsPolicy parameters
1 parent d8d9d76 commit d3a71cb

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ spec:
2121
annotations:
2222
{{- toYaml .Values.statefulSet.podAnnotations | nindent 8 }}
2323
spec:
24-
{{- if .Values.hostNetwork.enabled }}
25-
hostNetwork: true
24+
{{- if .Values.hostNetwork }}
25+
hostNetwork: {{ .Values.hostNetwork }}
2626
{{- end }}
2727
{{- if .Values.dnsConfig }}
2828
dnsConfig:
2929
{{- toYaml .Values.dnsConfig | nindent 8 }}
3030
{{- end }}
31+
{{- if .Values.dnsPolicy }}
32+
dnsPolicy: {{ .Values.dnsPolicy | quote }}
33+
{{- end }}
3134
{{- if .Values.runtimeClassName }}
3235
runtimeClassName: {{ .Values.runtimeClassName | quote }}
3336
{{- end }}

charts/plex-media-server/values.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ 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
18+
# -- Specifies the Pod's DNS policy. Default is typically 'ClusterFirst'.
19+
# If 'hostNetwork: true' is used, you may need to set this to 'ClusterFirstWithHostNet'.
20+
# Allowed values are ClusterFirst, Default, None, or ClusterFirstWithHostNet.
21+
dnsPolicy: ""
22+
23+
# -- Set to true to run the Pod in the host's network namespace.
24+
# This may be required for specific networking setups or accessing local resources.
25+
hostNetwork: false
2226

2327
ingress:
2428
# -- Specify if an ingress resource for the pms server should be created or not

0 commit comments

Comments
 (0)