plex
by alekc
Plex Media Server Helm chart
About this chart
plex
Plex Media Server Helm chart
Plex organizes and streams your personal media library (movies, TV, music) to any device, with automatic metadata fetching, transcoding, and remote access via plex.tv. This chart wraps the linuxserver.io Plex image.
Quick start
helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-plex alekc/plex \
--set persistence.config.enabled=true \
--set env.PUID=1000 \
--set env.PGID=1000
Or directly from the OCI registry, no helm repo add needed:
helm install my-plex oci://charts.alekc.dev/plex --version 2.10.0
Verifying the signature
curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/plex --version 2.10.0 --verify --keyring pubring.gpg
A minimal working values.yaml:
persistence:
config:
enabled: true
size: 2Gi
env:
PUID: "1000"
PGID: "1000"
Maintainers
| Name | Url | |
|---|---|---|
| Alexander Chernov | [email protected] |
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalManifests | object | {} | Additional raw Kubernetes manifests to render alongside the chart's own resources. Supports any valid Kubernetes object; values are templated with tpl, so a manifest can reference .Release.Namespace and friends. |
| additionalPorts | list | [] | Additional port definitions for the pod |
| additionalServicePorts | list | [] | Additional port definitions for the service |
| affinity | object | {} | Affinity for the pod assignment |
| annotations.deployment | object | {} | Deployment's annotations |
| commonAnnotations | object | {} | Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated annotations field. |
| commonLabels | object | {} | Labels merged onto every resource this chart renders. Never reaches selector/matchLabels, safe to change without forcing a Deployment recreate. |
| dnsConfig | object | {} | DNS configuration for the pod |
| dnsPolicy | string | "ClusterFirst" | DNS policy for the pod |
| env | object | {} | Non-sensitive environment variables to be set in the pods. See the application docs |
| extraVolumeMounts | list | [] | Arbitrary extra volume mounts for the pod |
| extraVolumes | list | [] | Arbitrary extra volume definitions for the pod |
| fullnameOverride | string | "" | String to fully override fullname template with a string |
| hostNetwork | bool | false | Use host network |
| hostPort.enabled | bool | false | Use host port for the application |
| hostPort.port | int | 32400 | Host port to bind to |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.repository | string | "docker.io/linuxserver/plex" | Image repository |
| image.tag | string | "" | Image tag (if not specified, defaults to the chart's appVersion) |
| imagePullSecrets | list | [] | Image pull secrets |
| ingress.annotations | object | {} | Annotations for the ingress |
| ingress.className | string | "" | Ingress class name |
| ingress.enabled | bool | false | Expose the app using an ingress |
| ingress.hosts | list | see values.yaml | Ingress hosts configuration |
| ingress.tls | list | [] | The TLS configuration for the Ingress |
| initContainers | list | [] | Init containers |
| livenessProbe | object | {"enabled":false} | Pod liveness probe. Set enabled: false to disable rather than overriding the block to {}/null, Helm's deep merge would leave a non-empty default in place either way. |
| nameOverride | string | "" | String to partially override fullname template with a string (will prepend the release name) |
| networkPolicy.annotations | object | {} | Annotations to add to the NetworkPolicy |
| networkPolicy.enabled | bool | false | Render a NetworkPolicy restricting ingress to the Service port and egress to DNS plus a broad allowance. Plex phones home to plex.tv for remote access and metadata, so egress is broad by default, see Gotchas. Has no effect on this pod's traffic when hostNetwork is enabled, see Gotchas. |
| networkPolicy.extraEgress | list | [] | Additional raw egress rules, appended as-is under spec.egress. |
| networkPolicy.extraIngress | list | [] | Additional raw ingress rules, appended as-is under spec.ingress. |
| nodeSelector | object | {} | The node selector for the deployment |
| persistence.config.accessModes | list | ["ReadWriteOnce"] | Config: Access modes for the claim |
| persistence.config.annotations | object | {} | Config: Annotations for the claim |
| persistence.config.customVolume | object | {} | Config: Alternative data volume definition (e.g. nfs, hostPath). Used when persistence.config.isPvc is false |
| persistence.config.enabled | bool | true | Config: Enable persistence |
| persistence.config.existingClaim | string | "" | Config: Name of the existing claim to be used for config |
| persistence.config.isPvc | bool | true | Config: Persistence type is pvc. When false, data volume definition is read from persistence.config.customVolume |
| persistence.config.size | string | "2Gi" | Config: Size for the claim |
| persistence.config.storageClass | string | "" | Config: Storage class for the volume |
| persistence.data.accessModes | list | ["ReadWriteOnce"] | Data: Access modes for the claim |
| persistence.data.annotations | object | {} | Data: Annotations for the claim |
| persistence.data.customVolume | object | {} | Data: Alternative data volume definition (e.g. nfs, hostPath). Used when persistence.data.isPvc is false |
| persistence.data.enabled | bool | false | Data: Enable persistence |
| persistence.data.existingClaim | string | "" | Data: Name of the existing claim to be used |
| persistence.data.isPvc | bool | true | Data: Persistence type is pvc. When false, data volume definition is read from persistence.data.customVolume |
| persistence.data.size | string | "64Gi" | Data: Size for the claim |
| persistence.data.storageClass | string | "" | Data: Storage class for the data volume |
| podAnnotations | object | {} | Annotations for the pods |
| podSecurityContext | object | {} | Security context for the pods |
| readinessProbe | object | {"enabled":true,"tcpSocket":{"port":"plex"}} | Pod readiness probe. Same enabled: false toggle as livenessProbe. |
| replicaCount | int | 1 | Number of replicas to run. Chart is not designed to scale horizontally, use at your own risk |
| resources | object | {} | The resource requests and limits of the container |
| secretEnv | object | {} | Sensitive environment variables to be set in the pods. See the application docs |
| securityContext | object | {} | Security context for the container |
| service.annotations | object | {} | Annotations to add to the Service |
| service.loadBalancerIP | string | "" | IP to request from the Load Balancer |
| service.port | int | 32400 | Port for the service to use |
| service.type | string | "ClusterIP" | Type of the service |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| sidecarContainers | list | [] | Sidecar containers |
| strategy | object | {"type":"Recreate"} | Deployment strategy |
| tolerations | list | [] | Tolerations for the pod assignment |
Gotchas
hostNetwork: trueis the common choice for Plex. Local network discovery (GDM) and DLNA rely on multicast/broadcast that doesn't cross a normal ClusterIP Service, so most deployments run Plex on the host network rather than exposing every discovery port viaadditionalPorts.networkPolicy.enabledhas no effect whenhostNetworkis true. A host-networked pod shares the node's network namespace, and most CNIs don't enforce NetworkPolicy against traffic that never goes through the pod network. Only useful when Plex runs off the host network.networkPolicy.enabledallows broad egress to0.0.0.0/0by default. Plex phones home to plex.tv for remote access, metadata agents, and update checks, which isn't a small fixed CIDR. Narrow it withnetworkPolicy.extraEgressif you disable remote access entirely.persistence.data.enableddefaults tofalse. PointextraVolumes/extraVolumeMountsat your existing media library instead of the built-indataPVC if you already manage media storage separately, this is the common pattern for an existing media server migration.readinessProbeis a bare TCP check on theplexport. It confirms the process is accepting connections, not that a specific library or transcoder is healthy.
Upgrade notes
No breaking changes yet. This section will list migration steps for any future release with
a kind: removed or kind: changed entry in artifacthub.io/changes that requires one.
Deploy plex with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has plex on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartplex is pinned at v2.10.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply