From 06ed73297eacd1bb2bf0637f3138e7781711420b Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Mon, 3 Apr 2023 01:12:51 -0400 Subject: [PATCH] Add radarr --- cluster/apps/media/kustomization.yaml | 3 +- cluster/apps/media/radarr/deployment.yaml | 42 ++++++++++++++++++++ cluster/apps/media/radarr/ingress.yaml | 19 +++++++++ cluster/apps/media/radarr/kustomization.yaml | 6 +++ cluster/apps/media/radarr/service.yaml | 16 ++++++++ cluster/apps/media/sonarr/helm.yaml | 32 --------------- 6 files changed, 85 insertions(+), 33 deletions(-) create mode 100644 cluster/apps/media/radarr/deployment.yaml create mode 100644 cluster/apps/media/radarr/ingress.yaml create mode 100644 cluster/apps/media/radarr/kustomization.yaml create mode 100644 cluster/apps/media/radarr/service.yaml delete mode 100644 cluster/apps/media/sonarr/helm.yaml diff --git a/cluster/apps/media/kustomization.yaml b/cluster/apps/media/kustomization.yaml index acf23e4..6a6014c 100644 --- a/cluster/apps/media/kustomization.yaml +++ b/cluster/apps/media/kustomization.yaml @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./namespace.yaml -- ./sonarr \ No newline at end of file +- ./sonarr +- ./radarr \ No newline at end of file diff --git a/cluster/apps/media/radarr/deployment.yaml b/cluster/apps/media/radarr/deployment.yaml new file mode 100644 index 0000000..e3ef55f --- /dev/null +++ b/cluster/apps/media/radarr/deployment.yaml @@ -0,0 +1,42 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: radarr + namespace: media + + labels: + app: radarr + kubernetes.io/name: "radarr" +spec: + replicas: 1 + selector: + matchLabels: + app: radarr + template: + metadata: + labels: + app: radarr + spec: + containers: + - name: radarr + image: linuxserver/radarr + imagePullPolicy: Always + ports: + - containerPort: 7878 + env: + - name: PGID + value: "1000" + - name: PUID + value: "1000" + volumeMounts: + - name: radarr + mountPath: /config + - name: radarr-media-storage + mountPath: /storage + volumes: + - name: radarr + hostPath: + path: /mnt/MainPool/Kubernetes/radarr + - name: radarr-media-storage + hostPath: + path: /mnt/MainPool/Media \ No newline at end of file diff --git a/cluster/apps/media/radarr/ingress.yaml b/cluster/apps/media/radarr/ingress.yaml new file mode 100644 index 0000000..d98ef00 --- /dev/null +++ b/cluster/apps/media/radarr/ingress.yaml @@ -0,0 +1,19 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: radarr-ingress + namespace: media + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure +spec: + rules: + - host: "k3srad.***REMOVED***" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: radarr + port: + name: radarr \ No newline at end of file diff --git a/cluster/apps/media/radarr/kustomization.yaml b/cluster/apps/media/radarr/kustomization.yaml new file mode 100644 index 0000000..b81e0e0 --- /dev/null +++ b/cluster/apps/media/radarr/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ./deployment.yaml +- ./ingress.yaml +- ./service.yaml \ No newline at end of file diff --git a/cluster/apps/media/radarr/service.yaml b/cluster/apps/media/radarr/service.yaml new file mode 100644 index 0000000..9811d24 --- /dev/null +++ b/cluster/apps/media/radarr/service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: radarr + namespace: media + + labels: + app: radarr + kubernetes.io/name: "radarr" +spec: + selector: + app: radarr + ports: + - name: radarr + port: 7878 + targetPort: 7878 \ No newline at end of file diff --git a/cluster/apps/media/sonarr/helm.yaml b/cluster/apps/media/sonarr/helm.yaml deleted file mode 100644 index a792738..0000000 --- a/cluster/apps/media/sonarr/helm.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: source.toolkit.fluxcd.io/v1beta2 -kind: HelmRepository -metadata: - name: aste88-charts - namespace: flux-system -spec: - interval: 1m - url: https://aste88.github.io/helm-charts/ ---- -apiVersion: helm.toolkit.fluxcd.io/v2beta1 -kind: HelmRelease -metadata: - name: sonarr - namespace: media -spec: - interval: 5m - chart: - spec: - chart: sonarr - version: '17.x.x' - sourceRef: - kind: HelmRepository - name: aste88-charts - namespace: flux-system - interval: 1m - values: - env: - TZ: America/New_York - metrics: - enabled: false - -# metrics.enabled: true \ No newline at end of file