From d8d9d765d80f64fffbfb8b77b68ed7e4c4d9f1a2 Mon Sep 17 00:00:00 2001 From: Keene Date: Sat, 1 Nov 2025 17:29:18 +1000 Subject: [PATCH 1/5] feat: Add optional hostNetwork support for Pods --- charts/plex-media-server/templates/statefulset.yaml | 3 +++ charts/plex-media-server/values.yaml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/charts/plex-media-server/templates/statefulset.yaml b/charts/plex-media-server/templates/statefulset.yaml index fa8fc424..9ad8a81f 100644 --- a/charts/plex-media-server/templates/statefulset.yaml +++ b/charts/plex-media-server/templates/statefulset.yaml @@ -21,6 +21,9 @@ spec: annotations: {{- toYaml .Values.statefulSet.podAnnotations | nindent 8 }} spec: + {{- if .Values.hostNetwork.enabled }} + hostNetwork: true + {{- end }} {{- if .Values.dnsConfig }} dnsConfig: {{- toYaml .Values.dnsConfig | nindent 8 }} diff --git a/charts/plex-media-server/values.yaml b/charts/plex-media-server/values.yaml index d7bdd997..cd37d351 100644 --- a/charts/plex-media-server/values.yaml +++ b/charts/plex-media-server/values.yaml @@ -15,6 +15,11 @@ global: # -- Optional DNS configuration for the Pod dnsConfig: {} +hostNetwork: + # -- Set to true to run the Pod in the host's network namespace. + # This may be required for specific networking setups or accessing local resources. + enabled: false + ingress: # -- Specify if an ingress resource for the pms server should be created or not enabled: false From d3a71cb0bd442c9f8201ee8d52a6977107910281 Mon Sep 17 00:00:00 2001 From: Keene Date: Tue, 4 Nov 2025 09:17:40 +1000 Subject: [PATCH 2/5] feat(network): Add configurable hostNetwork and dnsPolicy parameters --- charts/plex-media-server/templates/statefulset.yaml | 7 +++++-- charts/plex-media-server/values.yaml | 12 ++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/charts/plex-media-server/templates/statefulset.yaml b/charts/plex-media-server/templates/statefulset.yaml index 9ad8a81f..e3ba4af2 100644 --- a/charts/plex-media-server/templates/statefulset.yaml +++ b/charts/plex-media-server/templates/statefulset.yaml @@ -21,13 +21,16 @@ spec: annotations: {{- toYaml .Values.statefulSet.podAnnotations | nindent 8 }} spec: - {{- if .Values.hostNetwork.enabled }} - hostNetwork: true + {{- if .Values.hostNetwork }} + hostNetwork: {{ .Values.hostNetwork }} {{- end }} {{- if .Values.dnsConfig }} dnsConfig: {{- toYaml .Values.dnsConfig | nindent 8 }} {{- end }} + {{- if .Values.dnsPolicy }} + dnsPolicy: {{ .Values.dnsPolicy | quote }} + {{- end }} {{- if .Values.runtimeClassName }} runtimeClassName: {{ .Values.runtimeClassName | quote }} {{- end }} diff --git a/charts/plex-media-server/values.yaml b/charts/plex-media-server/values.yaml index cd37d351..f5bda93e 100644 --- a/charts/plex-media-server/values.yaml +++ b/charts/plex-media-server/values.yaml @@ -15,10 +15,14 @@ global: # -- Optional DNS configuration for the Pod dnsConfig: {} -hostNetwork: - # -- Set to true to run the Pod in the host's network namespace. - # This may be required for specific networking setups or accessing local resources. - enabled: false +# -- Specifies the Pod's DNS policy. Default is typically 'ClusterFirst'. +# If 'hostNetwork: true' is used, you may need to set this to 'ClusterFirstWithHostNet'. +# Allowed values are ClusterFirst, Default, None, or ClusterFirstWithHostNet. +dnsPolicy: "" + +# -- Set to true to run the Pod in the host's network namespace. +# This may be required for specific networking setups or accessing local resources. +hostNetwork: false ingress: # -- Specify if an ingress resource for the pms server should be created or not From 996a90955330b6a670add01409b2bd98f9aedd76 Mon Sep 17 00:00:00 2001 From: Gaston Festari Date: Tue, 4 Nov 2025 12:02:36 -0300 Subject: [PATCH 3/5] docs: update values reference --- charts/plex-media-server/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/plex-media-server/README.md b/charts/plex-media-server/README.md index 087aa46c..bae902dc 100644 --- a/charts/plex-media-server/README.md +++ b/charts/plex-media-server/README.md @@ -102,6 +102,7 @@ Before contributing, please read the [Code of Conduct](../../CODE_OF_CONDUCT.md) | affinity | object | `{}` | | | commonLabels | object | `{}` | Common Labels for all resources created by this chart. | | dnsConfig | object | `{}` | Optional DNS configuration for the Pod | +| dnsPolicy | string | `""` | Specifies the Pod's DNS policy. Default is typically 'ClusterFirst'. If 'hostNetwork: true' is used, you may need to set this to 'ClusterFirstWithHostNet'. Allowed values are ClusterFirst, Default, None, or ClusterFirstWithHostNet. | | extraContainers | list | `[]` | | | extraEnv | object | `{}` | | | extraInitContainers | object | `{}` | | @@ -109,6 +110,7 @@ Before contributing, please read the [Code of Conduct](../../CODE_OF_CONDUCT.md) | extraVolumes | list | `[]` | Optionally specify additional volumes for the pod. | | fullnameOverride | string | `""` | | | global.imageRegistry | string | `""` | Allow parent charts to override registry hostname | +| hostNetwork | bool | `false` | Set to true to run the Pod in the host's network namespace. This may be required for specific networking setups or accessing local resources. | | image | object | `{"pullPolicy":"IfNotPresent","registry":"index.docker.io","repository":"plexinc/pms-docker","sha":"","tag":"1.42.2.10156-f737b826c"}` | The docker image information for the pms application | | image.registry | string | `"index.docker.io"` | The public dockerhub registry | | imagePullSecrets | list | `[]` | | From 5190039e4b19f6a240b0f6b54ea90818c08a690f Mon Sep 17 00:00:00 2001 From: Gaston Festari Date: Tue, 4 Nov 2025 12:05:51 -0300 Subject: [PATCH 4/5] chore: prepare release v1.2.0 --- charts/plex-media-server/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/plex-media-server/Chart.yaml b/charts/plex-media-server/Chart.yaml index f4210a9d..97ffb2a5 100644 --- a/charts/plex-media-server/Chart.yaml +++ b/charts/plex-media-server/Chart.yaml @@ -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: 1.1.3 +version: 1.2.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 From 6b01eb87bc9eb7867c26d4cadc7c63192f8ab530 Mon Sep 17 00:00:00 2001 From: Gaston Festari Date: Tue, 4 Nov 2025 12:10:19 -0300 Subject: [PATCH 5/5] docs: update version --- charts/plex-media-server/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/plex-media-server/README.md b/charts/plex-media-server/README.md index bae902dc..bd44b8e3 100644 --- a/charts/plex-media-server/README.md +++ b/charts/plex-media-server/README.md @@ -1,6 +1,6 @@ # plex-media-server -![Version: 1.1.3](https://img.shields.io/badge/Version-1.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.42.2](https://img.shields.io/badge/AppVersion-1.42.2-informational?style=flat-square) +![Version: 1.2.0](https://img.shields.io/badge/Version-1.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.42.2](https://img.shields.io/badge/AppVersion-1.42.2-informational?style=flat-square) **Homepage:**