From 0921337faf2030b20f9abd0f9fb8326c40a38539 Mon Sep 17 00:00:00 2001 From: Martin Senebald Date: Sat, 3 Aug 2019 13:47:46 +0200 Subject: [PATCH 1/2] introduced new environmental variables for use of proxy within pms --- charts/kube-plex/README.md | 5 ++++- charts/kube-plex/templates/deployment.yaml | 14 ++++++++++++++ charts/kube-plex/values.yaml | 7 +++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/charts/kube-plex/README.md b/charts/kube-plex/README.md index 7a505c0..9d0a3c7 100644 --- a/charts/kube-plex/README.md +++ b/charts/kube-plex/README.md @@ -44,6 +44,9 @@ The following tables lists the configurable parameters of the Plex chart and the | `persistence.config.storageClass` | Type of persistent volume claim | `-` | | `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' | `{}` | 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 2538af9..1f19f53 100644 --- a/charts/kube-plex/templates/deployment.yaml +++ b/charts/kube-plex/templates/deployment.yaml @@ -112,6 +112,20 @@ spec: value: "{{ .Values.persistence.config.claimName }}" {{- else }} value: "{{ template "fullname" . }}-config" +{{- end }} +{{- if .Values.proxy.enable }} + {{- if .Values.proxy.http }} + - name: "HTTP_PROXY" + value: "{{.Values.proxy.http}}" + {{- end }} + {{- if .Values.proxy.https }} + - name: "HTTPS_PROXY" + value: "{{.Values.proxy.https}}" + {{- end }} + {{- if .Values.proxy.noproxy }} + - name: "NO_PROXY" + value: "{{.Values.proxy.noproxy}}" + {{- end }} {{- end }} volumeMounts: - name: data diff --git a/charts/kube-plex/values.yaml b/charts/kube-plex/values.yaml index 49c3f09..35238c8 100644 --- a/charts/kube-plex/values.yaml +++ b/charts/kube-plex/values.yaml @@ -118,3 +118,10 @@ resources: {} # memory: 128Mi podAnnotations: {} + +proxy: + # This allows to set a proxy environment variable, which PMS uses to fetch the token and assets like movie cover + enable: false + # http: "http://proxy:8080" + # https: "https://proxy:8080" + # noproxy: "localhost,127.0.0.1,10.96.0.0/12,10.244.0.0/12" From 46042491e1b1bc6ed067db063632c55528e2a1af Mon Sep 17 00:00:00 2001 From: Martin Senebald Date: Sat, 3 Aug 2019 14:25:07 +0200 Subject: [PATCH 2/2] bump Chart version to 0.2.5 --- charts/kube-plex/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/kube-plex/Chart.yaml b/charts/kube-plex/Chart.yaml index 59f227d..cf81c52 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.4 +version: 0.2.5 keywords: - plex home: https://plex.tv/