Compare commits

...

10 Commits

Author SHA1 Message Date
James Munnelly 74c7ede426 Merge pull request #104 from tedder/patch-1
add a hint about type=loadbalancer
2020-06-12 10:05:21 +01:00
Ted Timmons 53976c601f add a hint about type=loadbalancer
I couldn't figure out why setting a LB IP didn't change the service type, so I dug into the template and saw that it is switched by `type`.
2020-06-03 09:06:39 -07:00
Devin Buhl fc929e29f8 Add deploymentAnnotations (#86)
* add deploymentAnnotations

* remove duplicate podAnnotation
2020-03-03 10:33:09 +00:00
Devin Buhl 1e3785dc15 Set revisionHistoryLimit to 3 (#88) 2020-03-03 10:32:05 +00:00
Drew Stinnett 03dfd95664 Adding in option for additional mounts (#79) 2020-02-04 20:04:32 +00:00
Devin Buhl 7c2ec8721c allow to change accessmode for transode volume (#85) 2020-02-04 19:41:35 +00:00
Cristian e853014021 Fix claimName for existent pvc (#77) 2020-01-11 16:47:05 +00:00
hogtrough 5194fc4db7 Update README.md (#72)
Update helm command to new usage for name
2020-01-10 20:05:49 +00:00
Cristian 177f5ad965 Allow to specify "access mode" to data pvc (#76)
* Allow to specify "access mode" to data pvc

* Updated readme

* Updated values
2020-01-10 20:04:03 +00:00
Cristian a8c616065c Add affinity and tolerations (#75)
* Add affinity and tolerations

This is useful when running on clusters with more than one worker where one would like to pin plex to a specific node.

* Add docs to vaules.yaml

* Added tolerations and affinity to readme
2020-01-08 13:52:09 +00:00
6 changed files with 64 additions and 8 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ media, you can specify its name with `--set persistence.data.claimName`. If not
specified, a persistent volume will be automatically provisioned for you.
```bash
➜ helm install ./charts/kube-plex --name plex \
➜ helm install plex ./charts/kube-plex \
--namespace plex \
--set claimToken=[insert claim token here] \
--set persistence.data.claimName=existing-pms-data-pvc \
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.16.0.1226-7eb2c8f6f
description: Plex Media Server
name: kube-plex
version: 0.2.5
version: 0.2.7
keywords:
- plex
home: https://plex.tv/
+11 -4
View File
@@ -19,7 +19,7 @@ The following tables lists the configurable parameters of the Plex chart and the
| `service.port` | Kubernetes port where the plex GUI/API is exposed| `32400` |
| `service.annotations` | Service annotations for the Plex GUI | `{}` |
| `service.labels` | Custom labels | `{}` |
| `service.loadBalancerIP` | Loadbalance IP for the Plex GUI | `{}` |
| `service.loadBalancerIP` | Load balancer IP for the Plex GUI; set `service.type` to `LoadBalancer` to use this. | `{}` |
| `service.loadBalancerSourceRanges` | List of IP CIDRs allowed access to load balancer (if supported) | None
| `ingress.enabled` | Enables Ingress | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
@@ -34,19 +34,26 @@ The following tables lists the configurable parameters of the Plex chart and the
| `persistence.transcode.claimName`| Use an existing PVC to persist data | `nil` |
| `persistence.transcode.subPath` | SubPath to use for existing Claim | `nil` |
| `persistence.transcode.storageClass` | Type of persistent volume claim | `-` |
| `persistence.transcode.accessMode` | Persistent volume access mode | `ReadWriteMany` |
| `persistence.data.size` | Size of persistent volume claim | `40Gi` |
| `persistence.data.existingClaim`| Use an existing PVC to persist data | `nil` |
| `persistence.data.claimName`| Use an existing PVC to persist data | `nil` |
| `persistence.data.subPath` | SubPath to use for existing Claim | `nil` |
| `persistence.data.storageClass` | Type of persistent volume claim | `-` |
| `persistence.data.accessMode` | Persistent volume access mode | `ReadWriteMany` |
| `persistence.extraData` | Extra data mounts. Should be an array of items matching persistence.data entries | `[]` |
| `persistence.config.size` | Size of persistent volume claim | `20Gi` |
| `persistence.config.existingClaim`| Use an existing PVC to persist data | `nil` |
| `persistence.config.claimName`| Use an existing PVC to persist data | `nil` |
| `persistence.config.subPath` | SubPath to use for existing Claim | `nil` |
| `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.
@@ -7,8 +7,15 @@ 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
strategy:
type: Recreate
selector:
@@ -143,6 +150,10 @@ spec:
{{- if .Values.persistence.transcode.subPath }}
subPath: {{ .Values.persistence.transcode.subPath }}
{{ end }}
{{- range .Values.persistence.extraData }}
- mountPath: "/data-{{ .name }}"
name: "extradata-{{ .name }}"
{{- end }}
- name: shared
mountPath: /shared
resources:
@@ -176,6 +187,23 @@ spec:
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
{{- range .Values.persistence.extraData }}
- name: "extradata-{{ .name }}"
persistentVolumeClaim:
{{- if .claimName }}
claimName: "{{ .claimName }}"
{{- else }}
claimName: "extradata-{{ .name }}"
{{- end }}
{{- end }}
- name: shared
emptyDir: {}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
+2 -2
View File
@@ -11,7 +11,7 @@ metadata:
component: transcode
spec:
accessModes:
- ReadWriteMany
- {{ .Values.persistence.config.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.transcode.size | quote }}
@@ -55,7 +55,7 @@ metadata:
component: data
spec:
accessModes:
- ReadWriteMany
- {{ .Values.persistence.data.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.data.size | quote }}
+21
View File
@@ -77,6 +77,8 @@ persistence:
# The requested size of the volume to be used when creating a
# PersistentVolumeClaim.
size: 20Gi
# Access mode for this volume
accessMode: ReadWriteMany
data:
# Optionally specify claimName to manually override the PVC to be used for
# the data directory. If claimName is specified, storageClass and size are
@@ -90,6 +92,15 @@ persistence:
# The requested size of the volume to be used when creating a
# PersistentVolumeClaim.
size: 40Gi
# Access mode for this volume
accessMode: ReadWriteMany
extraData: []
# Optionally specifify additional Data mounts. These will be mounted as
# /data-${name}. This should be in the same format as the above 'data',
# with the additional field 'name'
# - claimName: "special-tv"
# name: 'foo'
config:
# Optionally specify claimName to manually override the PVC to be used for
# the config directory. If claimName is specified, storageClass and size
@@ -103,6 +114,7 @@ persistence:
# The requested size of the volume to be used when creating a
# PersistentVolumeClaim.
size: 20Gi
# Access mode for this volume
accessMode: ReadWriteMany
resources: {}
@@ -119,9 +131,18 @@ 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
# http: "http://proxy:8080"
# https: "https://proxy:8080"
# noproxy: "localhost,127.0.0.1,10.96.0.0/12,10.244.0.0/12"
# allows setting which taints kubeplex tolerates
tolerations: []
# allows specifying node affinity
affinity: {}