From a2d2e9cdc4ac8557cede752ba1c91e98b6830deb Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Wed, 28 Jun 2023 11:20:11 -0700 Subject: [PATCH] Add Ombi --- app-of-apps/templates/apps.yaml | 30 +++++ charts/ombi/Chart.yaml | 24 ++++ charts/ombi/README.md | 36 +++++ charts/ombi/templates/NOTES.txt | 22 +++ charts/ombi/templates/_helpers.tpl | 103 ++++++++++++++ charts/ombi/templates/deployment.yaml | 172 ++++++++++++++++++++++++ charts/ombi/templates/ingress.yaml | 101 ++++++++++++++ charts/ombi/templates/service.yaml | 74 +++++++++++ charts/ombi/templates/volumes.yaml | 185 ++++++++++++++++++++++++++ charts/ombi/values.yaml | 107 +++++++++++++++ 10 files changed, 854 insertions(+) create mode 100644 charts/ombi/Chart.yaml create mode 100644 charts/ombi/README.md create mode 100644 charts/ombi/templates/NOTES.txt create mode 100644 charts/ombi/templates/_helpers.tpl create mode 100644 charts/ombi/templates/deployment.yaml create mode 100644 charts/ombi/templates/ingress.yaml create mode 100644 charts/ombi/templates/service.yaml create mode 100644 charts/ombi/templates/volumes.yaml create mode 100644 charts/ombi/values.yaml diff --git a/app-of-apps/templates/apps.yaml b/app-of-apps/templates/apps.yaml index 8451051..40bdbd3 100644 --- a/app-of-apps/templates/apps.yaml +++ b/app-of-apps/templates/apps.yaml @@ -256,3 +256,33 @@ spec: prune: true syncOptions: - CreateNamespace=true +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: ombi + namespace: argo + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + + source: + repoURL: https://gitea.scubbo.org/scubbo/helm-charts.git + targetRevision: HEAD + path: charts/ombi + + helm: + valueFiles: + - values.yaml + + destination: + server: "https://kubernetes.default.svc" + namespace: ombi + + syncPolicy: + automated: + prune: true + syncOptions: + - CreateNamespace=true + diff --git a/charts/ombi/Chart.yaml b/charts/ombi/Chart.yaml new file mode 100644 index 0000000..3d9e845 --- /dev/null +++ b/charts/ombi/Chart.yaml @@ -0,0 +1,24 @@ +apiVersion: v2 +name: ombi +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "1.16.0" diff --git a/charts/ombi/README.md b/charts/ombi/README.md new file mode 100644 index 0000000..b63a695 --- /dev/null +++ b/charts/ombi/README.md @@ -0,0 +1,36 @@ +Expects a secret named `nzbget-creds`, with key `password` + +# Supporting services + +Ombi, Sonarr, Radarr, and NzbGet do nothing in isolation - you need to hook them up to supporting services to access any data. + +## Indexers + +These are the services that translate search requests into sets of Usenet post addresses to be downloaded and collated. + +I currently use: + +* NzbPlanet + +And have been advised to try: + +* DrunkenSlug +* Nzb.su +* NZBFinder +* NZBGeek + +## Providers + +These are the services that host the actual data + +I use: + +* Usenetserver + +And have been advised to try: + +* usenet.farm + +# See also + +The helm chart under `proton-vpn` \ No newline at end of file diff --git a/charts/ombi/templates/NOTES.txt b/charts/ombi/templates/NOTES.txt new file mode 100644 index 0000000..3c7934d --- /dev/null +++ b/charts/ombi/templates/NOTES.txt @@ -0,0 +1,22 @@ +1. Get the application URL by running these commands: +{{- if .Values.ingress.enabled }} +{{- range $host := .Values.ingress.hosts }} + {{- range .paths }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} + {{- end }} +{{- end }} +{{- else if contains "NodePort" .Values.service.type }} + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "ombi.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 --namespace {{ .Release.Namespace }} svc -w {{ include "ombi.fullname" . }}' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "ombi.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + 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 "ombi.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT +{{- end }} diff --git a/charts/ombi/templates/_helpers.tpl b/charts/ombi/templates/_helpers.tpl new file mode 100644 index 0000000..409cc55 --- /dev/null +++ b/charts/ombi/templates/_helpers.tpl @@ -0,0 +1,103 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "ombi.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 "ombi.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 "ombi.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "ombi.labels" -}} +helm.sh/chart: {{ include "ombi.chart" . }} +{{ include "ombi.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "ombi.selectorLabels" -}} +app.kubernetes.io/name: {{ include "ombi.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "ombi.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "ombi.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + +{{/* +Templatify creation of standard config PV-and-PVCs +Accepts `service` as a parameter, which should be a mapping containing: +* name - a string (like `sonarr` or `qbit`) +* size - a string (with the standard Kubernetes restrictions on size-strings) +* path - a string (defining the path in the NFS server where this config dir lives) + +Note that this assumes NFS as the storage type. A more extensible definition would permit arbitrary storage types. But hey, this is just for me :P + +Not currently working, but I'm keeping it checked-in for future inspiration! + +*/}} +{{- define "ombi.configvolumedefinition" -}} +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: ( include "ombi.fullname" . )-( .name )-config-pv +spec: + capacity: + storage: {{ .size }} + accessModes: + - ReadWriteMany + nfs: + server: {{ $.Values.volume.nfsServer }} + path: {{ .path }} +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: ( include "ombi.fullname" . )-{{ .name }}-config-pvc +spec: + storageClassName: "" + volumeName: ( include "ombi.fullname" . )-{{ .name }}-config-pv + accessModes: + - ReadWriteMany + resources: + requests: + storage: {{ .size }} +{{- end }} \ No newline at end of file diff --git a/charts/ombi/templates/deployment.yaml b/charts/ombi/templates/deployment.yaml new file mode 100644 index 0000000..456133f --- /dev/null +++ b/charts/ombi/templates/deployment.yaml @@ -0,0 +1,172 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "ombi.fullname" . }} + labels: + {{- include "ombi.labels" . | nindent 4 }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + selector: + matchLabels: + {{- include "ombi.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "ombi.selectorLabels" . | nindent 8 }} + spec: + nodeName: rasnu1 + # Necessary for Pod to have a static hostname in order to expose ports: + # https://docs.k8s-at-home.com/guides/pod-gateway/#exposing-routed-pod-ports-from-the-gateway + hostname: omni + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + {{ if .Values.ombi.enabled }} + - name: ombi + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + env: + - name: PUID + value: "1000" + - name: GUID + value: "1000" + - name: TZ + value: "America/Los_Angeles" + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - mountPath: /config + name: ombi-config + {{- end -}} + {{ if .Values.sonarr.enabled }} + - name: sonarr + securityContext: + {{- toYaml .Values.securityContext | nindent 12}} + image: "lscr.io/linuxserver/sonarr:latest" + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - mountPath: /config + name: sonarr-config + - mountPath: /data + name: ombi-data + {{- end -}} + {{ if .Values.radarr.enabled }} + - name: radarr + securityContext: + {{- toYaml .Values.securityContext | nindent 12}} + image: "lscr.io/linuxserver/radarr:latest" + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - mountPath: /config + name: radarr-config + - mountPath: /data + name: ombi-data + {{- end -}} + {{if .Values.prowlarr.enabled}} + - name: prowlarr + securityContext: + {{- toYaml .Values.securityContext | nindent 12}} + image: "lscr.io/linuxserver/prowlarr:latest" + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + resources: + {{- toYaml .Values.resources | nindent 12}} + volumeMounts: + - mountPath: /config + name: prowlarr-config + - mountPath: /data + name: ombi-data + {{- end -}} + {{ if .Values.nzbget.enabled }} + - name: nzbget + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "lscr.io/linuxserver/nzbget:latest" + imagePullPolicy: {{ .Values.image.pullPolicy }} + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: "America/Los_Angeles" + - name: NZBGET_USER + value: nzbget + - name: NZBGET_PASS + valueFrom: + secretKeyRef: + name: nzbget-creds + key: password + optional: false + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - mountPath: /config + name: nzbget-config + - mountPath: /data/usenet + name: usenet-downloads + {{ end }} + volumes: + - name: ombi-config + persistentVolumeClaim: + claimName: {{ include "ombi.fullname" . }}-ombi-config-pvc + - name: ombi-data + persistentVolumeClaim: + claimName: {{ include "ombi.fullname" . }}-data-pvc + - name: sonarr-config + persistentVolumeClaim: + claimName: {{ include "ombi.fullname" . }}-sonarr-config-pvc + - name: radarr-config + persistentVolumeClaim: + claimName: {{ include "ombi.fullname" . }}-radarr-config-pvc + - name: prowlarr-config + persistentVolumeClaim: + claimName: {{ include "ombi.fullname" . }}-prowlarr-config-pvc + - name: whisparr-config + persistentVolumeClaim: + claimName: ombi-whisparr-config-pvc + - name: nzbget-config + persistentVolumeClaim: + claimName: {{include "ombi.fullname" .}}-nzbget-config-pvc + - name: usenet-downloads + persistentVolumeClaim: + claimName: {{ include "ombi.fullname" . }}-usenet-downloads-pvc + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/ombi/templates/ingress.yaml b/charts/ombi/templates/ingress.yaml new file mode 100644 index 0000000..b88bcfd --- /dev/null +++ b/charts/ombi/templates/ingress.yaml @@ -0,0 +1,101 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "ombi.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} + {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} + {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} + {{- end }} +{{- end }} +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1 +{{- else 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 "ombi.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} + {{- 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: {{ .path }} + {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: {{ .pathType }} + {{- end }} + backend: + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} + {{- else }} + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} + {{- end }} + - host: sonarr.avril + http: + paths: + - path: / + pathType: ImplementationSpecific + backend: + service: + name: {{ include "ombi.fullname" . }}-sonarr + port: + number: {{ .Values.service.sonarrPort }} + - host: radarr.avril + http: + paths: + - path: / + pathType: ImplementationSpecific + backend: + service: + name: {{ include "ombi.fullname" . }}-radarr + port: + number: {{ .Values.service.radarrPort }} + - host: prowlarr.avril + http: + paths: + - path: / + pathType: ImplementationSpecific + backend: + service: + name: {{include "ombi.fullname" .}}-prowlarr + port: + number: {{.Values.service.prowlarrPort}} + - host: nzbget.avril + http: + paths: + - path: / + pathType: ImplementationSpecific + backend: + service: + name: {{ include "ombi.fullname" . }}-nzbget + port: + number: {{ .Values.service.nzbgetWebPort }} +{{- end }} diff --git a/charts/ombi/templates/service.yaml b/charts/ombi/templates/service.yaml new file mode 100644 index 0000000..4a08c15 --- /dev/null +++ b/charts/ombi/templates/service.yaml @@ -0,0 +1,74 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "ombi.fullname" . }} + labels: + {{- include "ombi.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: 3579 + protocol: TCP + selector: + {{- include "ombi.selectorLabels" . | nindent 4 }} +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ include "ombi.fullname" . }}-sonarr + labels: + {{- include "ombi.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.sonarrPort }} + targetPort: 8989 + protocol: TCP + selector: + {{- include "ombi.selectorLabels" . | nindent 4 }} +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ include "ombi.fullname" . }}-radarr + labels: + {{- include "ombi.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.radarrPort }} + targetPort: 7878 + protocol: TCP + selector: + {{- include "ombi.selectorLabels" . | nindent 4 }} +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ include "ombi.fullname" . }}-prowlarr + labels: + {{- include "ombi.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.prowlarrPort }} + targetPort: 9696 + protocol: TCP + selector: + {{- include "ombi.selectorLabels" . | nindent 4 }} +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ include "ombi.fullname" . }}-nzbget + labels: + {{- include "ombi.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.nzbgetWebPort }} + targetPort: 6789 + protocol: TCP + selector: + {{- include "ombi.selectorLabels" . | nindent 4 }} diff --git a/charts/ombi/templates/volumes.yaml b/charts/ombi/templates/volumes.yaml new file mode 100644 index 0000000..8413a0f --- /dev/null +++ b/charts/ombi/templates/volumes.yaml @@ -0,0 +1,185 @@ +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: {{ include "ombi.fullname" . }}-data-pv + namespace: {{ .Release.Namespace }} +spec: + capacity: + storage: 5T + accessModes: + - ReadWriteMany + nfs: + server: {{ .Values.volume.dataNFSServer }} + path: {{ .Values.volume.dataNFSPath }} +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "ombi.fullname" . }}-data-pvc + namespace: {{ .Release.Namespace }} +spec: + storageClassName: "" + volumeName: {{ include "ombi.fullname" . }}-data-pv + accessModes: + - ReadWriteMany + resources: + requests: + storage: 5T +# TODO - templatize these similar definitions +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: {{ include "ombi.fullname" . }}-ombi-config-pv +spec: + capacity: + storage: 1Gi + accessModes: + - ReadWriteMany + nfs: + server: {{ $.Values.volume.configNFSServer }} + path: /mnt/BERTHA/etc/ombi +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "ombi.fullname" . }}-ombi-config-pvc +spec: + storageClassName: "" + volumeName: {{ include "ombi.fullname" . }}-ombi-config-pv + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1Gi +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: {{ include "ombi.fullname" . }}-sonarr-config-pv +spec: + capacity: + storage: 10M + accessModes: + - ReadWriteMany + nfs: + server: {{ $.Values.volume.configNFSServer }} + path: /mnt/BERTHA/etc/sonarr +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "ombi.fullname" . }}-sonarr-config-pvc +spec: + storageClassName: "" + volumeName: {{ include "ombi.fullname" . }}-sonarr-config-pv + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10M +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: {{ include "ombi.fullname" . }}-radarr-config-pv +spec: + capacity: + storage: 10M + accessModes: + - ReadWriteMany + nfs: + server: {{ $.Values.volume.configNFSServer }} + path: /mnt/BERTHA/etc/radarr +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "ombi.fullname" . }}-radarr-config-pvc +spec: + storageClassName: "" + volumeName: {{ include "ombi.fullname" . }}-radarr-config-pv + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10M +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: {{ include "ombi.fullname" . }}-prowlarr-config-pv +spec: + capacity: + storage: 10M + accessModes: + - ReadWriteMany + nfs: + server: {{ $.Values.volume.configNFSServer }} + path: /mnt/BERTHA/etc/prowlarr +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "ombi.fullname" . }}-prowlarr-config-pvc +spec: + storageClassName: "" + volumeName: {{ include "ombi.fullname" . }}-prowlarr-config-pv + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10M +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: {{ include "ombi.fullname" . }}-nzbget-config-pv +spec: + capacity: + storage: 10M + accessModes: + - ReadWriteMany + nfs: + server: {{ $.Values.volume.configNFSServer }} + path: /mnt/BERTHA/etc/nzbget +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "ombi.fullname" . }}-nzbget-config-pvc +spec: + storageClassName: "" + volumeName: {{ include "ombi.fullname" . }}-nzbget-config-pv + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10M +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: {{ include "ombi.fullname" . }}-usenet-downloads-pv +spec: + capacity: + storage: 1T + accessModes: + - ReadWriteMany + nfs: + server: {{ $.Values.volume.dataNFSServer }} + path: /mnt/NEW_BERTHA/ombi-data/usenet +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "ombi.fullname" . }}-usenet-downloads-pvc +spec: + storageClassName: "" + volumeName: {{ include "ombi.fullname" . }}-usenet-downloads-pv + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1T diff --git a/charts/ombi/values.yaml b/charts/ombi/values.yaml new file mode 100644 index 0000000..19eabd8 --- /dev/null +++ b/charts/ombi/values.yaml @@ -0,0 +1,107 @@ +# Default values for ombi. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicaCount: 1 + +image: + repository: linuxserver/ombi + pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: "latest" + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +serviceAccount: + # Specifies whether a service account should be created + create: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +podAnnotations: {} + +podSecurityContext: {} + # fsGroup: 2000 + +securityContext: {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +service: + type: ClusterIP + port: 3579 + sonarrPort: 8989 + radarrPort: 7878 + prowlarrPort: 9696 + nzbgetWebPort: 6789 + +ingress: + enabled: true + className: "" + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: ombi.avril + paths: + - path: / + pathType: ImplementationSpecific + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +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 + +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 100 + targetCPUUtilizationPercentage: 80 + # targetMemoryUtilizationPercentage: 80 + +nodeSelector: {} + +tolerations: [] + +affinity: {} + +# Custom values below here +ombi: + enabled: true + +sonarr: + enabled: true + +radarr: + enabled: true + +prowlarr: + enabled: true + +nzbget: + enabled: true + +volume: + configNFSServer: rassigma.avril + dataNFSServer: rasnu2.avril + dataNFSPath: /mnt/NEW_BERTHA/ombi-data