plex
by utkuozdemir
Plex Media Server Helm chart
About this chart
plex
Plex Media Server Helm chart
Homepage: https://www.plex.tv
TL;DR
$ helm repo add utkuozdemir https://utkuozdemir.org/helm-charts
$ helm install my-release utkuozdemir/plex
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalPorts | list | [] | Additional port definitions for the pod |
| additionalServicePorts | list | [] | Additional port definitions for the service |
| affinity | object | {} | Affinity for the pod assignment |
| 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 | object | {} | 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 | {} | Pod liveness probe |
| nameOverride | string | "" | String to partially override fullname template with a string (will prepend the release name) |
| nodeSelector | object | {} | The node selector for the deployment |
| persistence.config.accessModes[0] | string | "ReadWriteOnce" | |
| 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[0] | string | "ReadWriteOnce" | |
| 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 | {"tcpSocket":{"port":"plex"}} | Pod readiness probe |
| 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.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 |
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
$ helm install my-release -f values.yaml utkuozdemir/plex
Tip: You can use the default values.yaml
Notes
Note that this is an un-opinionated chart regarding the configuration. What is meant by this is:
The chart passes the set of environment variables as-is into the container, using the env and secretEnv values.
This way we avoid mapping each and every configuration parameter to an explicitly
named chart parameter and provides a very flexible configuration.
Upgrading Chart
helm upgrade my-release utkuozdemir/plex
See helm upgrade for command documentation.
Upgrading an existing Release to a new major version
A major chart version change (like 1.2.0 -> 2.0.0) indicates that there is an incompatible breaking change needing manual actions.
From 1.x to 2.x
On version 2.x, the app is backed by a deployment instead of a statefulset.
The values is largely refactored - pay attention to the changes on the persistence section.
It is recommended to start from a fresh install.
Maintainers
| Name | Url | |
|---|---|---|
| Utku Özdemir | [email protected] | https://utkuozdemir.org |
Source Code
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.1.1 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