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 diff --git a/charts/plex-media-server/README.md b/charts/plex-media-server/README.md index 087aa46c..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:** @@ -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 | `[]` | | diff --git a/charts/plex-media-server/templates/statefulset.yaml b/charts/plex-media-server/templates/statefulset.yaml index fa8fc424..e3ba4af2 100644 --- a/charts/plex-media-server/templates/statefulset.yaml +++ b/charts/plex-media-server/templates/statefulset.yaml @@ -21,10 +21,16 @@ spec: annotations: {{- toYaml .Values.statefulSet.podAnnotations | nindent 8 }} spec: + {{- 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 d7bdd997..f5bda93e 100644 --- a/charts/plex-media-server/values.yaml +++ b/charts/plex-media-server/values.yaml @@ -15,6 +15,15 @@ global: # -- Optional DNS configuration for the Pod dnsConfig: {} +# -- 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 enabled: false