introduced new environmental variables for use of proxy within pms

This commit is contained in:
Martin Senebald
2019-08-03 13:47:46 +02:00
parent 78093c6ef6
commit 0921337faf
3 changed files with 25 additions and 1 deletions
+4 -1
View File
@@ -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 | `-` | | `persistence.config.storageClass` | Type of persistent volume claim | `-` |
| `resources` | CPU/Memory resource requests/limits | `{}` | | `resources` | CPU/Memory resource requests/limits | `{}` |
| `podAnnotations` | Key-value pairs to add as pod annotations | `{}` | | `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. Read through the [values.yaml](values.yaml) file. It has several commented out suggested values.
@@ -112,6 +112,20 @@ spec:
value: "{{ .Values.persistence.config.claimName }}" value: "{{ .Values.persistence.config.claimName }}"
{{- else }} {{- else }}
value: "{{ template "fullname" . }}-config" 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 }} {{- end }}
volumeMounts: volumeMounts:
- name: data - name: data
+7
View File
@@ -118,3 +118,10 @@ resources: {}
# memory: 128Mi # memory: 128Mi
podAnnotations: {} 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"