Add deploymentAnnotations (#86)

* add deploymentAnnotations

* remove duplicate podAnnotation
This commit is contained in:
Devin Buhl
2020-03-03 05:33:09 -05:00
committed by GitHub
parent 1e3785dc15
commit fc929e29f8
4 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.16.0.1226-7eb2c8f6f appVersion: 1.16.0.1226-7eb2c8f6f
description: Plex Media Server description: Plex Media Server
name: kube-plex name: kube-plex
version: 0.2.6 version: 0.2.7
keywords: keywords:
- plex - plex
home: https://plex.tv/ home: https://plex.tv/
+2 -1
View File
@@ -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.storageClass` | Type of persistent volume claim | `-` |
| `persistence.config.accessMode` | Persistent volume access mode | `ReadWriteMany` | | `persistence.config.accessMode` | Persistent volume access mode | `ReadWriteMany` |
| `resources` | CPU/Memory resource requests/limits | `{}` | | `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.enable` | use to enable PMS proxy environmental variable | `{false}` |
| `proxy.http` | HTTP_PROXY value 'http://proxy.lan:8080' | `{}` | | `proxy.http` | HTTP_PROXY value 'http://proxy.lan:8080' | `{}` |
| `proxy.https` | HTTPS_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' | `{}` | | `proxy.noproxy` | NO_PROXY value 'localhost,127.0.0.1,10.96.0.0/12,10.244.0.0/12' | `{}` |
| `tolerations` | Pod tolerations | `[]` | | `tolerations` | Pod tolerations | `[]` |
| `affinity` | Pod affinity configuration | `{}` | | `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. Read through the [values.yaml](values.yaml) file. It has several commented out suggested values.
@@ -7,6 +7,12 @@ metadata:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
{{- if .Values.deploymentAnnotations }}
annotations:
{{- range $key, $value := .Values.deploymentAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec: spec:
replicas: 1 replicas: 1
revisionHistoryLimit: 3 revisionHistoryLimit: 3
+2
View File
@@ -131,6 +131,8 @@ resources: {}
podAnnotations: {} podAnnotations: {}
deploymentAnnotations: {}
proxy: proxy:
# This allows to set a proxy environment variable, which PMS uses to fetch the token and assets like movie cover # This allows to set a proxy environment variable, which PMS uses to fetch the token and assets like movie cover
enable: false enable: false