diff --git a/charts/kube-plex/Chart.yaml b/charts/kube-plex/Chart.yaml index 6a99fde..c68ee16 100644 --- a/charts/kube-plex/Chart.yaml +++ b/charts/kube-plex/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 1.16.0.1226-7eb2c8f6f description: Plex Media Server name: kube-plex -version: 0.2.6 +version: 0.2.7 keywords: - plex home: https://plex.tv/ diff --git a/charts/kube-plex/README.md b/charts/kube-plex/README.md index 1736292..0bc1ec7 100644 --- a/charts/kube-plex/README.md +++ b/charts/kube-plex/README.md @@ -47,12 +47,13 @@ The following tables lists the configurable parameters of the Plex chart and the | `persistence.config.storageClass` | Type of persistent volume claim | `-` | | `persistence.config.accessMode` | Persistent volume access mode | `ReadWriteMany` | | `resources` | CPU/Memory resource requests/limits | `{}` | -| `podAnnotations` | Key-value pairs to add as pod annotations | `{}` | | `proxy.enable` | use to enable PMS proxy environmental variable | `{false}` | | `proxy.http` | HTTP_PROXY value 'http://proxy.lan:8080' | `{}` | | `proxy.https` | HTTPS_PROXY value 'http://proxy.lan:8080' | `{}` | | `proxy.noproxy` | NO_PROXY value 'localhost,127.0.0.1,10.96.0.0/12,10.244.0.0/12' | `{}` | | `tolerations` | Pod tolerations | `[]` | | `affinity` | Pod affinity configuration | `{}` | +| `podAnnotations` | Key-value pairs to add as pod annotations | `{}` | +| `deploymentAnnotations` | Key-value pairs to add as deployment annotations | `{}` | Read through the [values.yaml](values.yaml) file. It has several commented out suggested values. diff --git a/charts/kube-plex/templates/deployment.yaml b/charts/kube-plex/templates/deployment.yaml index 0b84a4d..eafe64b 100644 --- a/charts/kube-plex/templates/deployment.yaml +++ b/charts/kube-plex/templates/deployment.yaml @@ -7,6 +7,12 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + {{- if .Values.deploymentAnnotations }} + annotations: + {{- range $key, $value := .Values.deploymentAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: replicas: 1 revisionHistoryLimit: 3 diff --git a/charts/kube-plex/values.yaml b/charts/kube-plex/values.yaml index a81834f..5374de6 100644 --- a/charts/kube-plex/values.yaml +++ b/charts/kube-plex/values.yaml @@ -131,6 +131,8 @@ resources: {} podAnnotations: {} +deploymentAnnotations: {} + proxy: # This allows to set a proxy environment variable, which PMS uses to fetch the token and assets like movie cover enable: false