mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
Cleanup (#139)
* removing kube-plex Signed-off-by: Jeff Billimek <jeff@billimek.com> * removing DCO checkbox from PR template Signed-off-by: Jeff Billimek <jeff@billimek.com>
This commit is contained in:
parent
67cb8ec883
commit
309338a745
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#### Checklist
|
#### Checklist
|
||||||
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
|
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
|
||||||
- [ ] [DCO](https://github.com/helm/charts/blob/master/CONTRIBUTING.md#sign-your-work) signed
|
|
||||||
- [ ] Chart Version bumped
|
- [ ] Chart Version bumped
|
||||||
- [ ] Variables are documented in the README.md
|
- [ ] Variables are documented in the README.md
|
||||||
- [ ] Title of the PR starts with chart name (e.g. `[radarr]`)
|
- [ ] Title of the PR starts with chart name (e.g. `[radarr]`)
|
||||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +0,0 @@
|
|||||||
[submodule "kube-plex"]
|
|
||||||
path = .submodules/kube-plex
|
|
||||||
url = https://github.com/billimek/kube-plex.git
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 24056f110d5b135121e0900dece9b44eca9ac736
|
|
@ -1,21 +0,0 @@
|
|||||||
# Patterns to ignore when building packages.
|
|
||||||
# This supports shell glob matching, relative path matching, and
|
|
||||||
# negation (prefixed with !). Only one pattern per line.
|
|
||||||
.DS_Store
|
|
||||||
# Common VCS dirs
|
|
||||||
.git/
|
|
||||||
.gitignore
|
|
||||||
.bzr/
|
|
||||||
.bzrignore
|
|
||||||
.hg/
|
|
||||||
.hgignore
|
|
||||||
.svn/
|
|
||||||
# Common backup files
|
|
||||||
*.swp
|
|
||||||
*.bak
|
|
||||||
*.tmp
|
|
||||||
*~
|
|
||||||
# Various IDEs
|
|
||||||
.project
|
|
||||||
.idea/
|
|
||||||
*.tmproj
|
|
@ -1,14 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
appVersion: 1.16.0.1226-7eb2c8f6f
|
|
||||||
description: Plex Media Server
|
|
||||||
name: kube-plex
|
|
||||||
version: 0.2.4
|
|
||||||
keywords:
|
|
||||||
- plex
|
|
||||||
home: https://plex.tv/
|
|
||||||
icon: https://www.plex.tv/wp-content/uploads/2018/01/pmp-icon-1.png
|
|
||||||
sources:
|
|
||||||
- https://github.com/munnerz/kube-plex
|
|
||||||
- https://hub.docker.com/r/plexinc/pms-docker/
|
|
||||||
maintainers:
|
|
||||||
- name: munnerz
|
|
@ -1,49 +0,0 @@
|
|||||||
# Plex Media Server helm chart
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
The following tables lists the configurable parameters of the Plex chart and their default values.
|
|
||||||
|
|
||||||
| Parameter | Description | Default |
|
|
||||||
|----------------------------|-------------------------------------|---------------------------------------------------------|
|
|
||||||
| `image.repository` | Image repository | `plexinc/pms-docker` |
|
|
||||||
| `image.tag` | Image tag. Possible values listed [here](https://hub.docker.com/r/plexinc/pms-docker/tags/).| `1.10.1.4602-f54242b6b`|
|
|
||||||
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
|
|
||||||
| `kubePlex.enabled` | Enable KubPlex transcoder | `true` |
|
|
||||||
| `kubePlex.image.repository` | Image repository | `quay.io/munnerz/kube-plex` |
|
|
||||||
| `kubePlex.image.tag` | Image tag. | `latest`|
|
|
||||||
| `kubePlex.image.pullPolicy` | Image pull policy | `IfNotPresent` |
|
|
||||||
| `claimToken` | Plex Claim Token to authenticate your acount | `` |
|
|
||||||
| `timezone` | Timezone plex instance should run as, e.g. 'America/New_York' | `Europe/London` |
|
|
||||||
| `service.type` | Kubernetes service type for the plex GUI/API | `ClusterIP` |
|
|
||||||
| `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.loadBalancerSourceRanges` | List of IP CIDRs allowed access to load balancer (if supported) | None
|
|
||||||
| `ingress.enabled` | Enables Ingress | `false` |
|
|
||||||
| `ingress.annotations` | Ingress annotations | `{}` |
|
|
||||||
| `ingress.labels` | Custom labels | `{}`
|
|
||||||
| `ingress.path` | Ingress path | `/` |
|
|
||||||
| `ingress.hosts` | Ingress accepted hostnames | `chart-example.local` |
|
|
||||||
| `ingress.tls` | Ingress TLS configuration | `[]` |
|
|
||||||
| `rbac.create` | Create RBAC roles? | `true` |
|
|
||||||
| `nodeSelector` | Node labels for pod assignment | `beta.kubernetes.io/arch: amd64` |
|
|
||||||
| `persistence.transcode.enabled` | Use persistent volume for transcoding | `false` |
|
|
||||||
| `persistence.transcode.size` | Size of persistent volume claim | `20Gi` |
|
|
||||||
| `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.data.size` | Size of persistent volume claim | `40Gi` |
|
|
||||||
| `persistence.data.existingClaim`| 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.config.size` | Size of persistent volume claim | `20Gi` |
|
|
||||||
| `persistence.config.existingClaim`| 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 | `-` |
|
|
||||||
| `resources` | CPU/Memory resource requests/limits | `{}` |
|
|
||||||
| `podAnnotations` | Key-value pairs to add as pod annotations | `{}` |
|
|
||||||
|
|
||||||
|
|
||||||
Read through the [values.yaml](values.yaml) file. It has several commented out suggested values.
|
|
@ -1,19 +0,0 @@
|
|||||||
1. Get the application URL by running these commands:
|
|
||||||
{{- if .Values.ingress.enabled }}
|
|
||||||
{{- range .Values.ingress.hosts }}
|
|
||||||
http://{{ . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- else if contains "NodePort" .Values.service.type }}
|
|
||||||
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "fullname" . }})
|
|
||||||
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
|
|
||||||
echo http://$NODE_IP:$NODE_PORT
|
|
||||||
{{- else if contains "LoadBalancer" .Values.service.type }}
|
|
||||||
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
|
|
||||||
You can watch the status of by running 'kubectl get svc -w {{ template "fullname" . }}'
|
|
||||||
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
|
|
||||||
echo http://$SERVICE_IP:{{ .Values.service.externalPort }}
|
|
||||||
{{- else if contains "ClusterIP" .Values.service.type }}
|
|
||||||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
|
||||||
echo "Visit http://127.0.0.1:8080 to use your application"
|
|
||||||
kubectl port-forward $POD_NAME 8080:{{ .Values.service.externalPort }}
|
|
||||||
{{- end }}
|
|
@ -1,16 +0,0 @@
|
|||||||
{{/* vim: set filetype=mustache: */}}
|
|
||||||
{{/*
|
|
||||||
Expand the name of the chart.
|
|
||||||
*/}}
|
|
||||||
{{- define "name" -}}
|
|
||||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a default fully qualified app name.
|
|
||||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
||||||
*/}}
|
|
||||||
{{- define "fullname" -}}
|
|
||||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
|
||||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end -}}
|
|
@ -1,167 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: {{ template "fullname" . }}
|
|
||||||
labels:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
{{- if .Values.podAnnotations }}
|
|
||||||
annotations:
|
|
||||||
{{- range $key, $value := .Values.podAnnotations }}
|
|
||||||
{{ $key }}: {{ $value | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: {{ if .Values.rbac.create }}{{ template "fullname" . }}{{ else }}{{ .Values.rbac.serviceAccountName | quote }}{{ end }}
|
|
||||||
hostname: "{{ template "fullname" . }}"
|
|
||||||
{{- if .Values.kubePlex.enabled }}
|
|
||||||
initContainers:
|
|
||||||
- name: kube-plex-install
|
|
||||||
image: "{{ .Values.kubePlex.image.repository }}:{{ .Values.kubePlex.image.tag }}"
|
|
||||||
imagePullPolicy: {{ .Values.kubePlex.image.pullPolicy }}
|
|
||||||
command:
|
|
||||||
- cp
|
|
||||||
- /kube-plex
|
|
||||||
- /shared/kube-plex
|
|
||||||
volumeMounts:
|
|
||||||
- name: shared
|
|
||||||
mountPath: /shared
|
|
||||||
{{- end }}
|
|
||||||
containers:
|
|
||||||
- name: plex
|
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
{{- if .Values.kubePlex.enabled }}
|
|
||||||
# We replace the PMS binary with a postStart hook to save having to
|
|
||||||
# modify the default image entrypoint.
|
|
||||||
lifecycle:
|
|
||||||
postStart:
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- bash
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
rm -f '/usr/lib/plexmediaserver/Plex Transcoder'
|
|
||||||
cp /shared/kube-plex '/usr/lib/plexmediaserver/Plex Transcoder'
|
|
||||||
{{- end }}
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /identity
|
|
||||||
port: 32400
|
|
||||||
initialDelaySeconds: 15
|
|
||||||
timeoutSeconds: 5
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /identity
|
|
||||||
port: 32400
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
timeoutSeconds: 10
|
|
||||||
ports:
|
|
||||||
- name: pms
|
|
||||||
containerPort: 32400
|
|
||||||
- name: http
|
|
||||||
containerPort: 32400
|
|
||||||
- name: https
|
|
||||||
containerPort: 32443
|
|
||||||
env:
|
|
||||||
- name: TZ
|
|
||||||
value: "{{ .Values.timezone }}"
|
|
||||||
# TODO: move this to a secret?
|
|
||||||
- name: PLEX_CLAIM
|
|
||||||
value: "{{ .Values.claimToken }}"
|
|
||||||
# kube-plex env vars
|
|
||||||
- name: PMS_INTERNAL_ADDRESS
|
|
||||||
value: http://{{ template "fullname" . }}:32400
|
|
||||||
- name: PMS_IMAGE
|
|
||||||
value: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
||||||
- name: KUBE_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
- name: TRANSCODE_PVC
|
|
||||||
{{- if .Values.persistence.transcode.claimName }}
|
|
||||||
value: "{{ .Values.persistence.transcode.claimName }}"
|
|
||||||
{{- else }}
|
|
||||||
value: "{{ template "fullname" . }}-transcode"
|
|
||||||
{{- end }}
|
|
||||||
- name: DATA_PVC
|
|
||||||
{{- if .Values.persistence.data.claimName }}
|
|
||||||
value: "{{ .Values.persistence.data.claimName }}"
|
|
||||||
{{- else }}
|
|
||||||
value: "{{ template "fullname" . }}-data"
|
|
||||||
{{- end }}
|
|
||||||
- name: CONFIG_PVC
|
|
||||||
{{- if .Values.persistence.config.claimName }}
|
|
||||||
value: "{{ .Values.persistence.config.claimName }}"
|
|
||||||
{{- else }}
|
|
||||||
value: "{{ template "fullname" . }}-config"
|
|
||||||
{{- end }}
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /data
|
|
||||||
{{- if .Values.persistence.data.subPath }}
|
|
||||||
subPath: {{ .Values.persistence.data.subPath }}
|
|
||||||
{{ end }}
|
|
||||||
- name: config
|
|
||||||
mountPath: /config
|
|
||||||
{{- if .Values.persistence.config.subPath }}
|
|
||||||
subPath: {{ .Values.persistence.config.subPath }}
|
|
||||||
{{ end }}
|
|
||||||
- name: transcode
|
|
||||||
mountPath: /transcode
|
|
||||||
{{- if .Values.persistence.transcode.subPath }}
|
|
||||||
subPath: {{ .Values.persistence.transcode.subPath }}
|
|
||||||
{{ end }}
|
|
||||||
- name: shared
|
|
||||||
mountPath: /shared
|
|
||||||
resources:
|
|
||||||
{{ toYaml .Values.resources | indent 10 }}
|
|
||||||
{{- if .Values.nodeSelector }}
|
|
||||||
nodeSelector:
|
|
||||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
volumes:
|
|
||||||
- name: data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
{{- if .Values.persistence.data.claimName }}
|
|
||||||
claimName: "{{ .Values.persistence.data.claimName }}"
|
|
||||||
{{- else }}
|
|
||||||
claimName: "{{ template "fullname" . }}-data"
|
|
||||||
{{- end }}
|
|
||||||
- name: config
|
|
||||||
persistentVolumeClaim:
|
|
||||||
{{- if .Values.persistence.config.claimName }}
|
|
||||||
claimName: "{{ .Values.persistence.config.claimName }}"
|
|
||||||
{{- else }}
|
|
||||||
claimName: "{{ template "fullname" . }}-config"
|
|
||||||
{{- end }}
|
|
||||||
- name: transcode
|
|
||||||
{{- if .Values.persistence.transcode.enabled }}
|
|
||||||
persistentVolumeClaim:
|
|
||||||
{{- if .Values.persistence.transcode.claimName }}
|
|
||||||
claimName: "{{ .Values.persistence.transcode.claimName }}"
|
|
||||||
{{- else }}
|
|
||||||
claimName: "{{ template "fullname" . }}-transcode"
|
|
||||||
{{- end }}
|
|
||||||
{{- else }}
|
|
||||||
emptyDir: {}
|
|
||||||
{{- end }}
|
|
||||||
- name: shared
|
|
||||||
emptyDir: {}
|
|
@ -1,31 +0,0 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
|
||||||
{{- $serviceName := include "fullname" . -}}
|
|
||||||
apiVersion: extensions/v1beta1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: {{ template "fullname" . }}
|
|
||||||
labels:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
annotations:
|
|
||||||
{{- range $key, $value := .Values.ingress.annotations }}
|
|
||||||
{{ $key }}: {{ $value | quote }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
{{- range $host := .Values.ingress.hosts }}
|
|
||||||
- host: {{ $host }}
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
backend:
|
|
||||||
serviceName: {{ $serviceName }}
|
|
||||||
servicePort: pms
|
|
||||||
{{- end -}}
|
|
||||||
{{- if .Values.ingress.tls }}
|
|
||||||
tls:
|
|
||||||
{{ toYaml .Values.ingress.tls | indent 4 }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
@ -1,54 +0,0 @@
|
|||||||
{{- if .Values.rbac.create -}}
|
|
||||||
{{- if .Values.kubePlex.enabled }}
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
|
||||||
name: {{ template "fullname" . }}
|
|
||||||
labels:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- pods
|
|
||||||
- pods/attach
|
|
||||||
- pods/exec
|
|
||||||
- pods/portforward
|
|
||||||
- pods/proxy
|
|
||||||
verbs:
|
|
||||||
- create
|
|
||||||
- delete
|
|
||||||
- deletecollection
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- patch
|
|
||||||
- update
|
|
||||||
- watch
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: RoleBinding
|
|
||||||
metadata:
|
|
||||||
name: {{ template "fullname" . }}
|
|
||||||
labels:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: Role
|
|
||||||
name: {{ template "fullname" . }}
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: {{ template "fullname" . }}
|
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
|
||||||
{{- end }}
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: {{ template "fullname" . }}
|
|
||||||
{{- end }}
|
|
@ -1,59 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: {{ template "fullname" . }}
|
|
||||||
labels:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
{{- if .Values.service.labels }}
|
|
||||||
{{ toYaml .Values.service.labels | indent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.service.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{ toYaml . | indent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
{{- if (or (eq .Values.service.type "ClusterIP") (empty .Values.service.type)) }}
|
|
||||||
type: ClusterIP
|
|
||||||
{{- if .Values.service.clusterIP }}
|
|
||||||
clusterIP: {{ .Values.service.clusterIP }}
|
|
||||||
{{end}}
|
|
||||||
{{- else if eq .Values.service.type "LoadBalancer" }}
|
|
||||||
type: {{ .Values.service.type }}
|
|
||||||
{{- if .Values.service.loadBalancerIP }}
|
|
||||||
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.service.loadBalancerSourceRanges }}
|
|
||||||
loadBalancerSourceRanges:
|
|
||||||
{{ toYaml .Values.service.loadBalancerSourceRanges | indent 4 }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- else }}
|
|
||||||
type: {{ .Values.service.type }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.service.externalIPs }}
|
|
||||||
externalIPs:
|
|
||||||
{{ toYaml .Values.service.externalIPs | indent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.service.externalTrafficPolicy }}
|
|
||||||
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
|
|
||||||
{{- end }}
|
|
||||||
ports:
|
|
||||||
- name: pms
|
|
||||||
port: {{ .Values.service.port }}
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: pms
|
|
||||||
{{ if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
|
|
||||||
nodePort: {{.Values.service.nodePort}}
|
|
||||||
{{ end }}
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: pms
|
|
||||||
- name: https
|
|
||||||
port: 443
|
|
||||||
targetPort: 32443
|
|
||||||
selector:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
|
|
@ -1,66 +0,0 @@
|
|||||||
{{- if and (not .Values.persistence.transcode.claimName) .Values.persistence.transcode.enabled }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: {{ template "fullname" . }}-transcode
|
|
||||||
labels:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
component: transcode
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.persistence.transcode.size | quote }}
|
|
||||||
{{- if .Values.persistence.transcode.storageClass }}
|
|
||||||
storageClassName: {{ .Values.persistence.transcode.storageClass | quote }}
|
|
||||||
{{- end }}
|
|
||||||
---
|
|
||||||
{{- end }}
|
|
||||||
{{- if not .Values.persistence.config.claimName }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: {{ template "fullname" . }}-config
|
|
||||||
labels:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
component: config
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- {{ .Values.persistence.config.accessMode | quote }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.persistence.config.size | quote }}
|
|
||||||
{{- if .Values.persistence.config.storageClass }}
|
|
||||||
storageClassName: {{ .Values.persistence.config.storageClass | quote }}
|
|
||||||
{{- end }}
|
|
||||||
---
|
|
||||||
{{- end }}
|
|
||||||
{{- if not .Values.persistence.data.claimName }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: {{ template "fullname" . }}-data
|
|
||||||
labels:
|
|
||||||
app: {{ template "name" . }}
|
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
component: data
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.persistence.data.size | quote }}
|
|
||||||
{{- if .Values.persistence.data.storageClass }}
|
|
||||||
storageClassName: {{ .Values.persistence.data.storageClass | quote }}
|
|
||||||
{{- end }}
|
|
||||||
---
|
|
||||||
{{- end }}
|
|
@ -1,120 +0,0 @@
|
|||||||
# Default values for kube-plex.
|
|
||||||
# This is a YAML-formatted file.
|
|
||||||
# Declare variables to be passed into your templates.
|
|
||||||
image:
|
|
||||||
repository: plexinc/pms-docker
|
|
||||||
tag: 1.16.0.1226-7eb2c8f6f
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
|
|
||||||
kubePlex:
|
|
||||||
enabled: true
|
|
||||||
image:
|
|
||||||
repository: quay.io/munnerz/kube-plex
|
|
||||||
tag: latest
|
|
||||||
pullPolicy: Always
|
|
||||||
|
|
||||||
# Override this with the plex claim token from plex.tv/claim
|
|
||||||
claimToken: ""
|
|
||||||
|
|
||||||
# Set the timezone of the plex server
|
|
||||||
timezone: Europe/London
|
|
||||||
|
|
||||||
service:
|
|
||||||
type: ClusterIP
|
|
||||||
port: 32400
|
|
||||||
## Specify the nodePort value for the LoadBalancer and NodePort service types.
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
|
|
||||||
##
|
|
||||||
# nodePort:
|
|
||||||
## Provide any additional annotations which may be required. This can be used to
|
|
||||||
## set the LoadBalancer service type to internal only.
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
|
|
||||||
##
|
|
||||||
annotations: {}
|
|
||||||
labels: {}
|
|
||||||
## Use loadBalancerIP to request a specific static IP,
|
|
||||||
## otherwise leave blank
|
|
||||||
##
|
|
||||||
loadBalancerIP:
|
|
||||||
# loadBalancerSourceRanges: []
|
|
||||||
## Set the externalTrafficPolicy in the Service to either Cluster or Local
|
|
||||||
# externalTrafficPolicy: Cluster
|
|
||||||
|
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
# Used to create an Ingress record.
|
|
||||||
hosts:
|
|
||||||
- chart-example.local
|
|
||||||
annotations:
|
|
||||||
# kubernetes.io/ingress.class: nginx
|
|
||||||
# kubernetes.io/tls-acme: "true"
|
|
||||||
tls:
|
|
||||||
# Secrets must be manually created in the namespace.
|
|
||||||
# - secretName: chart-example-tls
|
|
||||||
# hosts:
|
|
||||||
# - chart-example.local
|
|
||||||
|
|
||||||
rbac:
|
|
||||||
create: true
|
|
||||||
# Specify create: false and serviceAccountName to manually manage the service
|
|
||||||
# account for this deployment
|
|
||||||
## serviceAccountName: ""
|
|
||||||
|
|
||||||
nodeSelector:
|
|
||||||
beta.kubernetes.io/arch: amd64
|
|
||||||
|
|
||||||
persistence:
|
|
||||||
transcode:
|
|
||||||
# Optionally specify claimName to manually override the PVC to be used for
|
|
||||||
# the transcode directory. If claimName is specified, storageClass and size
|
|
||||||
# are ignored.
|
|
||||||
## claimName: "plex-transcode-pvc"
|
|
||||||
# Optionally specify a storage class to be used for the transcode directory.
|
|
||||||
# If not specified and claimName is not specified, the default storage
|
|
||||||
# class will be used.
|
|
||||||
storageClass: ""
|
|
||||||
# subPath: some-subpath
|
|
||||||
# The requested size of the volume to be used when creating a
|
|
||||||
# PersistentVolumeClaim.
|
|
||||||
size: 20Gi
|
|
||||||
data:
|
|
||||||
# Optionally specify claimName to manually override the PVC to be used for
|
|
||||||
# the data directory. If claimName is specified, storageClass and size are
|
|
||||||
# ignored.
|
|
||||||
## claimName: "plex-data-pvc"
|
|
||||||
# Optionally specify a storage class to be used for the data directory.
|
|
||||||
# If not specified and claimName is not specified, the default storage
|
|
||||||
# class will be used.
|
|
||||||
storageClass: ""
|
|
||||||
# subPath: some-subpath
|
|
||||||
# The requested size of the volume to be used when creating a
|
|
||||||
# PersistentVolumeClaim.
|
|
||||||
size: 40Gi
|
|
||||||
config:
|
|
||||||
# Optionally specify claimName to manually override the PVC to be used for
|
|
||||||
# the config directory. If claimName is specified, storageClass and size
|
|
||||||
# are ignored.
|
|
||||||
## claimName: "plex-config-pvc"
|
|
||||||
# Optionally specify a storage class to be used for the config directory.
|
|
||||||
# If not specified and claimName is not specified, the default storage
|
|
||||||
# class will be used.
|
|
||||||
# subPath: some-subpath
|
|
||||||
storageClass: ""
|
|
||||||
# The requested size of the volume to be used when creating a
|
|
||||||
# PersistentVolumeClaim.
|
|
||||||
size: 20Gi
|
|
||||||
accessMode: ReadWriteMany
|
|
||||||
|
|
||||||
resources: {}
|
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
|
||||||
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
|
||||||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
|
||||||
# limits:
|
|
||||||
# cpu: 100m
|
|
||||||
# memory: 128Mi
|
|
||||||
# requests:
|
|
||||||
# cpu: 100m
|
|
||||||
# memory: 128Mi
|
|
||||||
|
|
||||||
podAnnotations: {}
|
|
Loading…
Reference in New Issue
Block a user