diff --git a/.idea/k8s@home charts.iml b/.idea/k8s@home charts.iml
new file mode 100644
index 00000000..5e764c4f
--- /dev/null
+++ b/.idea/k8s@home charts.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/charts/media-common/.helmignore b/charts/media-common/.helmignore
new file mode 100644
index 00000000..46fd8996
--- /dev/null
+++ b/charts/media-common/.helmignore
@@ -0,0 +1,23 @@
+# 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
+# OWNERS file for Kubernetes
+OWNERS
diff --git a/charts/media-common/Chart.yaml b/charts/media-common/Chart.yaml
new file mode 100644
index 00000000..e384d00b
--- /dev/null
+++ b/charts/media-common/Chart.yaml
@@ -0,0 +1,11 @@
+apiVersion: v2
+name: media-common
+description: Common dependancy chart for media ecosystem containers
+type: application
+version: 1.0.0
+keywords:
+ - media-common
+home: https://github.com/k8s-at-home/charts/tree/master/charts/media-common
+maintainers:
+ - name: DirtyCajunRice
+ email: nick@cajun.pro
diff --git a/charts/media-common/OWNERS b/charts/media-common/OWNERS
new file mode 100644
index 00000000..90661f99
--- /dev/null
+++ b/charts/media-common/OWNERS
@@ -0,0 +1,4 @@
+approvers:
+- DirtyCajunRice
+reviewers:
+- DirtyCajunRice
\ No newline at end of file
diff --git a/charts/media-common/lidarr/Chart.yaml b/charts/media-common/lidarr/Chart.yaml
new file mode 100644
index 00000000..3efc6bb3
--- /dev/null
+++ b/charts/media-common/lidarr/Chart.yaml
@@ -0,0 +1,20 @@
+apiVersion: v2
+name: Lidarr
+description: Lidarr Chart
+type: application
+version: 1.0.0
+appVersion: 0.7.1.1785
+keywords:
+ - sonarr
+home: https://github.com/k8s-at-home/charts/tree/master/charts/media-common/lidarr
+sources:
+ - https://github.com/Lidarr/Lidarr
+ - https://hub.docker.com/r/itscontained/lidarr
+maintainers:
+ - name: DirtyCajunRice
+ email: nick@cajun.pro
+dependencies:
+ - name: media-common
+ repository: https://k8s-at-home.com/charts/
+ version: 1.0.0
+ alias: lidarr
\ No newline at end of file
diff --git a/charts/media-common/lidarr/values.yaml b/charts/media-common/lidarr/values.yaml
new file mode 100644
index 00000000..0112e546
--- /dev/null
+++ b/charts/media-common/lidarr/values.yaml
@@ -0,0 +1,10 @@
+# Default values for lidarr.
+
+sonarr:
+ image:
+ organization: itscontained
+ repository: lidarr
+ pullPolicy: IfNotPresent
+ tag: ""
+ service:
+ port: 8686
\ No newline at end of file
diff --git a/charts/media-common/radarr/Chart.yaml b/charts/media-common/radarr/Chart.yaml
new file mode 100644
index 00000000..e0e73913
--- /dev/null
+++ b/charts/media-common/radarr/Chart.yaml
@@ -0,0 +1,20 @@
+apiVersion: v2
+name: Radarr
+description: Radarr Chart
+type: application
+version: 1.0.0
+appVersion: 3.0.0.3591
+keywords:
+ - radarr
+home: https://github.com/k8s-at-home/charts/tree/master/charts/media-common/radarr
+sources:
+ - https://github.com/Radarr/Radarr
+ - https://hub.docker.com/r/itscontained/radarr
+maintainers:
+ - name: DirtyCajunRice
+ email: nick@cajun.pro
+dependencies:
+ - name: media-common
+ repository: https://k8s-at-home.com/charts/
+ version: 1.0.0
+ alias: radarr
\ No newline at end of file
diff --git a/charts/media-common/radarr/values.yaml b/charts/media-common/radarr/values.yaml
new file mode 100644
index 00000000..da5a738c
--- /dev/null
+++ b/charts/media-common/radarr/values.yaml
@@ -0,0 +1,10 @@
+# Default values for radarr.
+
+radarr:
+ image:
+ organization: itscontained
+ repository: radarr
+ pullPolicy: IfNotPresent
+ tag: ""
+ service:
+ port: 7878
\ No newline at end of file
diff --git a/charts/media-common/sonarr/Chart.yaml b/charts/media-common/sonarr/Chart.yaml
new file mode 100644
index 00000000..8217b850
--- /dev/null
+++ b/charts/media-common/sonarr/Chart.yaml
@@ -0,0 +1,20 @@
+apiVersion: v2
+name: Sonarr
+description: Sonarr Chart
+type: application
+version: 1.0.0
+appVersion: 3.0.3.913
+keywords:
+ - sonarr
+home: https://github.com/k8s-at-home/charts/tree/master/charts/media-common/sonarr
+sources:
+ - https://github.com/Sonarr/Sonarr
+ - https://hub.docker.com/r/itscontained/sonarr
+maintainers:
+ - name: DirtyCajunRice
+ email: nick@cajun.pro
+dependencies:
+ - name: media-common
+ repository: https://k8s-at-home.com/charts/
+ version: 1.0.0
+ alias: sonarr
\ No newline at end of file
diff --git a/charts/media-common/sonarr/values.yaml b/charts/media-common/sonarr/values.yaml
new file mode 100644
index 00000000..421ceb0a
--- /dev/null
+++ b/charts/media-common/sonarr/values.yaml
@@ -0,0 +1,10 @@
+# Default values for sonarr.
+
+sonarr:
+ image:
+ organization: itscontained
+ repository: sonarr
+ pullPolicy: IfNotPresent
+ tag: ""
+ service:
+ port: 8989
\ No newline at end of file
diff --git a/charts/media-common/templates/NOTES.txt b/charts/media-common/templates/NOTES.txt
new file mode 100644
index 00000000..f881f661
--- /dev/null
+++ b/charts/media-common/templates/NOTES.txt
@@ -0,0 +1,19 @@
+1. Get the application URL by running these commands:
+{{- if .Values.ingress.enabled }}
+{{- range .Values.ingress.hosts }}
+ http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }}
+{{- end }}
+{{- else if contains "NodePort" .Values.service.type }}
+ export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "media-common.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 {{ include "media-common.fullname" . }}'
+ export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "media-common.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
+ echo http://$SERVICE_IP:{{ .Values.service.port }}
+{{- else if contains "ClusterIP" .Values.service.type }}
+ export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "media-common.name" . }},app.kubernetes.io/instance={{ .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:80
+{{- end }}
diff --git a/charts/media-common/templates/_helpers.tpl b/charts/media-common/templates/_helpers.tpl
new file mode 100644
index 00000000..8b6e8de7
--- /dev/null
+++ b/charts/media-common/templates/_helpers.tpl
@@ -0,0 +1,71 @@
+{{/* vim: set filetype=mustache: */}}
+{{/*
+Expand the name of the chart.
+*/}}
+{{- define "media-common.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).
+If release name contains chart name it will be used as a full name.
+*/}}
+{{- define "media-common.fullname" -}}
+{{- if .Values.fullnameOverride -}}
+{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
+{{- else -}}
+{{- $name := default .Chart.Name .Values.nameOverride -}}
+{{- if contains $name .Release.Name -}}
+{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
+{{- else -}}
+{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Create chart name and version as used by the chart label.
+*/}}
+{{- define "media-common.chart" -}}
+{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{/*
+Common labels
+*/}}
+{{- define "media-common.labels" -}}
+helm.sh/chart: {{ include "media-common.chart" . }}
+{{ include "media-common.selectorLabels" . }}
+{{- if .Chart.AppVersion }}
+app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
+{{- end }}
+app.kubernetes.io/managed-by: {{ .Release.Service }}
+{{- end }}
+
+{{/*
+Selector labels
+*/}}
+{{- define "media-common.selectorLabels" -}}
+app.kubernetes.io/name: {{ include "media-common.name" . }}
+app.kubernetes.io/instance: {{ .Release.Name }}
+{{- end }}
+
+{{/*
+Config Path Selector
+*/}}
+{{- define "media-common.configPathSelector" -}}
+ {{- if eq .Values.image.organization "itscontained" -}}
+ {{- if eq .Values.image.repository "radarr" -}}
+/var/lib/radarr
+ {{- else if eq .Values.image.repository "sonarr" -}}
+/var/lib/sonarr
+ {{- else if eq .Values.image.repository "lidarr" -}}
+ {{- fail "lidarr not yet implemented" -}}
+ {{- else -}}
+ {{- fail "Could not establish the service port from the repository and no service port was set" -}}
+ {{- end -}}
+ {{- else -}}
+/config
+ {{- end -}}
+{{- end -}}
\ No newline at end of file
diff --git a/charts/media-common/templates/configmap.yaml b/charts/media-common/templates/configmap.yaml
new file mode 100644
index 00000000..41603fc2
--- /dev/null
+++ b/charts/media-common/templates/configmap.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ template "media-common.fullname" . }}
+ labels:
+ {{- include "media-common.labels" . | nindent 4 }}
+{{- if .Values.env }}
+data:
+ {{- toYaml .Values.env | nindent 2 }}
+{{- end }}
\ No newline at end of file
diff --git a/charts/media-common/templates/deployment.yaml b/charts/media-common/templates/deployment.yaml
new file mode 100644
index 00000000..eeae600d
--- /dev/null
+++ b/charts/media-common/templates/deployment.yaml
@@ -0,0 +1,105 @@
+{{- if eq .Values.persistence.type "deployment" }}
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ template "media-common.fullname" . }}
+ labels:
+ {{- include "media-common.labels" . | nindent 4 }}
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ {{- include "media-common.selectorLabels" . | nindent 6 }}
+ template:
+ metadata:
+ {{- with .Values.podAnnotations }}
+ annotations:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ labels:
+ {{- include "media-common.selectorLabels" . | nindent 8 }}
+ spec:
+ {{- with .Values.imagePullSecrets }}
+ imagePullSecrets:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ {{- with .Values.podSecurityContext }}
+ securityContext:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ containers:
+ - name: {{ template "media-common.fullname" . }}
+ {{- with .Values.securityContext }}
+ securityContext:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ image: "{{ .Values.image.organization }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ envFrom:
+ - configMapRef:
+ name: {{ template "media-common.fullname" . }}
+ ports:
+ - name: http
+ containerPort: {{ template "media-common.portSelector" . }}
+ protocol: TCP
+ livenessProbe:
+ tcpSocket:
+ port: http
+ initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
+ failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
+ timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }}
+ readinessProbe:
+ tcpSocket:
+ port: http
+ initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
+ failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
+ timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }}
+ volumeMounts:
+ - mountPath: {{ template "media-common.configPathSelector" . }}
+ name: config
+ {{- if .Values.persistence.config.subPath }}
+ subPath: {{ .Values.persistence.config.subPath }}
+ {{- end }}
+ {{- if .Values.persistence.media.enabled }}
+ - mountPath: /media
+ name: media
+ {{- if .Values.persistence.media.subPath }}
+ subPath: {{ .Values.persistence.media.subPath }}
+ {{- end }}
+ {{- end }}
+ {{- if .Values.additionalVolumeMounts }}
+ {{- toYaml .Values.additionalVolumes | nindent 12 }}
+ {{- end }}
+ {{- with .Values.resources }}
+ resources:
+ {{- toYaml . | nindent 12 }}
+ {{- end }}
+ volumes:
+ - name: config
+ {{- if .Values.persistence.config.enabled }}
+ persistentVolumeClaim:
+ claimName: {{ if .Values.persistence.config.existingClaim }}{{ .Values.persistence.config.existingClaim }}{{- else }}{{ template "media-common.fullname" . }}{{- end }}
+ {{- else }}
+ emptyDir: {}
+ {{- end }}
+ {{- if .Values.persistence.media.enabled }}
+ - name: media
+ persistentVolumeClaim:
+ claimName: {{ if .Values.persistence.media.existingClaim }}{{ .Values.persistence.media.existingClaim }}{{- else }}{{ template "media-common.fullname" . }}-media{{- end }}
+ {{- end }}
+ {{- if .Values.additionalVolumes }}
+ {{- toYaml .Values.additionalVolumes | nindent 8 }}
+ {{- end }}
+ {{- with .Values.nodeSelector }}
+ nodeSelector:
+ {{ toYaml . | indent 8 }}
+ {{- end }}
+ {{- with .Values.affinity }}
+ affinity:
+ {{ toYaml . | indent 8 }}
+ {{- end }}
+ {{- with .Values.tolerations }}
+ tolerations:
+ {{ toYaml . | indent 8 }}
+ {{- end }}
+{{- end }}
\ No newline at end of file
diff --git a/charts/media-common/templates/ingress.yaml b/charts/media-common/templates/ingress.yaml
new file mode 100644
index 00000000..3ce03cd3
--- /dev/null
+++ b/charts/media-common/templates/ingress.yaml
@@ -0,0 +1,41 @@
+{{- if .Values.ingress.enabled -}}
+ {{- $fullName := include "media-common.fullname" . -}}
+ {{- $svcPort := include "media-common.portSelector" . -}}
+ {{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
+apiVersion: networking.k8s.io/v1beta1
+ {{- else -}}
+apiVersion: extensions/v1beta1
+ {{- end }}
+kind: Ingress
+metadata:
+ name: {{ $fullName }}
+ labels:
+ {{- include "media-common.labels" . | nindent 4 }}
+ {{- with .Values.ingress.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+spec:
+ {{- if .Values.ingress.tls }}
+ tls:
+ {{- range .Values.ingress.tls }}
+ - hosts:
+ {{- range .hosts }}
+ - {{ . | quote }}
+ {{- end }}
+ secretName: {{ .secretName }}
+ {{- end }}
+ {{- end }}
+ rules:
+ {{- range .Values.ingress.hosts }}
+ - host: {{ .host | quote }}
+ http:
+ paths:
+ {{- range .paths }}
+ - path: {{ . }}
+ backend:
+ serviceName: {{ $fullName }}
+ servicePort: {{ $svcPort }}
+ {{- end }}
+ {{- end }}
+{{- end }}
diff --git a/charts/media-common/templates/pvc.yaml b/charts/media-common/templates/pvc.yaml
new file mode 100644
index 00000000..14309791
--- /dev/null
+++ b/charts/media-common/templates/pvc.yaml
@@ -0,0 +1,44 @@
+{{- if and .Values.persistence.config.enabled (not .Values.persistence.config.existingClaim) -}}
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: {{ template "media-common.fullname" . }}
+ {{- if .Values.persistence.config.skipuninstall }}
+ annotations:
+ "helm.sh/resource-policy": keep
+ {{- end }}
+ labels:
+ {{- include "media-common.labels" . | nindent 4 }}
+spec:
+ accessModes:
+ - {{ .Values.persistence.config.accessMode | quote }}
+ resources:
+ requests:
+ storage: {{ .Values.persistence.config.size | quote }}
+ {{- if .Values.persistence.config.storageClass }}
+ storageClassName: {{ if (eq "-" .Values.persistence.config.storageClass) }}""{{- else }}{{ .Values.persistence.config.storageClass | quote }}{{- end }}
+ {{- end }}
+{{- end -}}
+{{- if and .Values.persistence.media.enabled (not .Values.persistence.media.existingClaim) }}
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: {{ template "media-common.fullname" . }}-media
+ {{- if .Values.persistence.media.skipuninstall }}
+ annotations:
+ "helm.sh/resource-policy": keep
+ {{- end }}
+ labels:
+ {{- include "media-common.labels" . | nindent 4 }}
+spec:
+ accessModes:
+ - {{ .Values.persistence.media.accessMode | quote }}
+ resources:
+ requests:
+ storage: {{ .Values.persistence.media.size | quote }}
+ {{- if .Values.persistence.media.storageClass }}
+ storageClassName: {{ if (eq "-" .Values.persistence.media.storageClass) }}""{{- else }}{{ .Values.persistence.media.storageClass | quote}}{{- end }}
+ {{- end }}
+{{- end -}}
\ No newline at end of file
diff --git a/charts/media-common/templates/service.yaml b/charts/media-common/templates/service.yaml
new file mode 100644
index 00000000..efe45ef6
--- /dev/null
+++ b/charts/media-common/templates/service.yaml
@@ -0,0 +1,28 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ template "media-common.fullname" . }}
+ labels:
+ {{- include "media-common.labels" . | nindent 4 }}
+ {{- if .Values.service.labels }}
+ {{ toYaml .Values.service.labels | indent 4 }}
+ {{- end }}
+ {{- with .Values.service.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ - name: http
+ port: {{ template "media-common.portSelector" . }}
+ protocol: TCP
+ targetPort: http
+ {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
+ nodePort: {{ .Values.service.nodePort }}
+ {{- end }}
+ {{- with .Values.service.additionalSpec }}
+ {{- toYaml . | nindent 2 }}
+ {{- end }}
+ selector:
+ {{- include "media-common.selectorLabels" . | nindent 4 }}
\ No newline at end of file
diff --git a/charts/media-common/templates/statefulset.yaml b/charts/media-common/templates/statefulset.yaml
new file mode 100644
index 00000000..791c7e65
--- /dev/null
+++ b/charts/media-common/templates/statefulset.yaml
@@ -0,0 +1,106 @@
+{{- if eq .Values.persistence.type "statefulset" }}
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: {{ template "media-common.fullname" . }}
+ labels:
+ {{- include "media-common.labels" . | nindent 4 }}
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ {{- include "media-common.selectorLabels" . | nindent 6 }}
+ serviceName: {{ include "media-common.fullname" . }}
+ template:
+ metadata:
+ {{- with .Values.podAnnotations }}
+ annotations:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ labels:
+ {{- include "media-common.selectorLabels" . | nindent 8 }}
+ spec:
+ {{- with .Values.imagePullSecrets }}
+ imagePullSecrets:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ {{- with .Values.podSecurityContext }}
+ securityContext:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ containers:
+ - name: {{ template "media-common.fullname" . }}
+ {{- with .Values.securityContext }}
+ securityContext:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ image: "{{ .Values.image.organization }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ envFrom:
+ - configMapRef:
+ name: {{ template "media-common.fullname" . }}
+ ports:
+ - name: http
+ containerPort: {{ template "media-common.portSelector" . }}
+ protocol: TCP
+ livenessProbe:
+ tcpSocket:
+ port: http
+ initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
+ failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
+ timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }}
+ readinessProbe:
+ tcpSocket:
+ port: http
+ initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
+ failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
+ timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }}
+ volumeMounts:
+ - mountPath: {{ template "media-common.configPathSelector" . }}
+ name: config
+ {{- if .Values.persistence.config.subPath }}
+ subPath: {{ .Values.persistence.config.subPath }}
+ {{- end }}
+ {{- if .Values.persistence.media.enabled }}
+ - mountPath: /media
+ name: media
+ {{- if .Values.persistence.media.subPath }}
+ subPath: {{ .Values.persistence.media.subPath }}
+ {{- end }}
+ {{- end }}
+ {{- if .Values.additionalVolumeMounts }}
+ {{- toYaml .Values.additionalVolumeMounts | nindent 12 }}
+ {{- end }}
+ {{- with .Values.resources }}
+ resources:
+ {{- toYaml . | nindent 12 }}
+ {{- end }}
+ volumes:
+ - name: config
+ {{- if .Values.persistence.config.enabled }}
+ persistentVolumeClaim:
+ claimName: {{ if .Values.persistence.config.existingClaim }}{{ .Values.persistence.config.existingClaim }}{{- else }}{{ template "media-common.fullname" . }}{{- end }}
+ {{- else }}
+ emptyDir: {}
+ {{- end }}
+ {{- if .Values.persistence.media.enabled }}
+ - name: media
+ persistentVolumeClaim:
+ claimName: {{ if .Values.persistence.media.existingClaim }}{{ .Values.persistence.media.existingClaim }}{{- else }}{{ template "media-common.fullname" . }}-media{{- end }}
+ {{- end }}
+ {{- if .Values.additionalVolumes }}
+ {{- toYaml .Values.additionalVolumes | nindent 8 }}
+ {{- end }}
+ {{- with .Values.nodeSelector }}
+ nodeSelector:
+ {{ toYaml . | indent 8 }}
+ {{- end }}
+ {{- with .Values.affinity }}
+ affinity:
+ {{ toYaml . | indent 8 }}
+ {{- end }}
+ {{- with .Values.tolerations }}
+ tolerations:
+ {{ toYaml . | indent 8 }}
+ {{- end }}
+{{- end }}
\ No newline at end of file
diff --git a/charts/media-common/values.yaml b/charts/media-common/values.yaml
new file mode 100644
index 00000000..8badab61
--- /dev/null
+++ b/charts/media-common/values.yaml
@@ -0,0 +1,132 @@
+# Default values for media-common.
+
+image:
+ organization: ""
+ repository: ""
+ pullPolicy: IfNotPresent
+ tag: ""
+
+# Probes configuration
+probes:
+ liveness:
+ initialDelaySeconds: 60
+ failureThreshold: 5
+ timeoutSeconds: 10
+ readiness:
+ initialDelaySeconds: 60
+ failureThreshold: 5
+ timeoutSeconds: 10
+
+imagePullSecrets: []
+nameOverride: ""
+fullnameOverride: ""
+
+env:
+ TZ: UTC
+
+service:
+ type: ClusterIP
+ port: ""
+ ## 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: {}
+ additionalSpec: {}
+
+ingress:
+ enabled: false
+ annotations: {}
+ # kubernetes.io/ingress.class: nginx
+ # kubernetes.io/tls-acme: "true"
+ labels: {}
+ hosts:
+ - host: chart-example.local
+ paths:
+ - /
+ tls: []
+ # - secretName: chart-example-tls
+ # hosts:
+ # - chart-example.local
+
+persistence:
+ # type: options are statefulset or deployment
+ type: statefulset
+ config:
+ enabled: true
+ ## arr configuration data Persistent Volume Storage Class
+ ## If defined, storageClassName:
+ ## If set to "-", storageClassName: "", which disables dynamic provisioning
+ ## If undefined (the default) or set to null, no storageClassName spec is
+ ## set, choosing the default provisioner. (gp2 on AWS, standard on
+ ## GKE, AWS & OpenStack)
+ ##
+ # storageClass: "-"
+ ##
+ ## If you want to reuse an existing claim, you can pass the name of the PVC using
+ ## the existingClaim variable
+ # existingClaim: your-claim
+ # subPath: some-subpath
+ accessMode: ReadWriteOnce
+ size: 1Gi
+ ## Do not delete the pvc upon helm uninstall
+ skipuninstall: false
+ media:
+ enabled: true
+ ## arr media volume configuration
+ ## If defined, storageClassName:
+ ## If set to "-", storageClassName: "", which disables dynamic provisioning
+ ## If undefined (the default) or set to null, no storageClassName spec is
+ ## set, choosing the default provisioner. (gp2 on AWS, standard on
+ ## GKE, AWS & OpenStack)
+ ##
+ # storageClass: "-"
+ ##
+ ## If you want to reuse an existing claim, you can pass the name of the PVC using
+ ## the existingClaim variable
+ # existingClaim: your-claim
+ # subPath: some-subpath
+ accessMode: ReadWriteOnce
+ size: 10Gi
+ ## Do not delete the pvc upon helm uninstall
+ skipuninstall: false
+
+additionalVolumes: []
+
+additionalVolumeMounts: []
+
+podSecurityContext: {}
+# fsGroup: 2000
+
+securityContext: {}
+ # capabilities:
+ # drop:
+ # - ALL
+ # readOnlyRootFilesystem: true
+ # runAsNonRoot: true
+# runAsUser: 1000
+
+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
+
+nodeSelector: {}
+
+tolerations: []
+
+affinity: {}
+
+podAnnotations: {}