diff --git a/cluster/apps/download/radarr/deployment.yaml b/cluster/apps/download/radarr/deployment.yaml deleted file mode 100644 index ea98977..0000000 --- a/cluster/apps/download/radarr/deployment.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: radarr - namespace: download - - 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-download-storage - mountPath: /storage - volumes: - - name: radarr - hostPath: - path: /mnt/MainPool/Kubernetes/radarr - - name: radarr-download-storage - hostPath: - path: /mnt/MainPool/Media \ No newline at end of file diff --git a/cluster/apps/download/radarr/helm-release.yaml b/cluster/apps/download/radarr/helm-release.yaml new file mode 100644 index 0000000..183374c --- /dev/null +++ b/cluster/apps/download/radarr/helm-release.yaml @@ -0,0 +1,73 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: radarr + namespace: download +spec: + interval: 5m + chart: + spec: + chart: app-template + version: 1.3.x + sourceRef: + kind: HelmRepository + name: bjws-charts + namespace: flux-system + + values: + image: + repository: lscr.io/linuxserver/radarr + tag: latest + env: + TZ: America/New_York + PGID: "1000" + PUID: "1000" + service: + main: + ports: + http: + port: 7878 + probes: + liveness: + enabled: true + custom: true + spec: + httpGet: + path: /ping + port: 7878 + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 + startup: + enabled: false + ingress: + main: + enabled: true + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-production" + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd + hosts: + - host: "k3srad.***REMOVED***" + paths: + - path: / + pathType: Prefix + persistence: + config: + enabled: true + type: hostPath + hostPath: /mnt/MainPool/Kubernetes/radarr + mountPath: /config + storage: + enabled: true + type: hostPath + hostPath: /mnt/MainPool/Media + mountPath: /storage + + resources: + requests: + cpu: 10m + memory: 350Mi + limits: + memory: 1500Mi \ No newline at end of file diff --git a/cluster/apps/download/radarr/ingress.yaml b/cluster/apps/download/radarr/ingress.yaml deleted file mode 100644 index e2dded5..0000000 --- a/cluster/apps/download/radarr/ingress.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: radarr-ingress - namespace: download - annotations: - cert-manager.io/cluster-issuer: "letsencrypt-production" - traefik.ingress.kubernetes.io/router.entrypoints: websecure - traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd -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/download/radarr/kustomization.yaml b/cluster/apps/download/radarr/kustomization.yaml index b81e0e0..ea3145d 100644 --- a/cluster/apps/download/radarr/kustomization.yaml +++ b/cluster/apps/download/radarr/kustomization.yaml @@ -1,6 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- ./deployment.yaml -- ./ingress.yaml -- ./service.yaml \ No newline at end of file +- ./helm-release.yaml \ No newline at end of file diff --git a/cluster/apps/download/radarr/service.yaml b/cluster/apps/download/radarr/service.yaml deleted file mode 100644 index 14acde3..0000000 --- a/cluster/apps/download/radarr/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: radarr - namespace: download - - 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/download/sonarr/deployment.yaml b/cluster/apps/download/sonarr/deployment.yaml deleted file mode 100644 index 63b51d7..0000000 --- a/cluster/apps/download/sonarr/deployment.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: sonarr - namespace: download - - labels: - app: sonarr - kubernetes.io/name: "sonarr" -spec: - replicas: 1 - selector: - matchLabels: - app: sonarr - template: - metadata: - labels: - app: sonarr - spec: - containers: - - name: sonarr - image: linuxserver/sonarr - imagePullPolicy: Always - ports: - - containerPort: 8989 - env: - - name: PGID - value: "1000" - - name: PUID - value: "1000" - volumeMounts: - - name: sonarr - mountPath: /config - - name: sonarr-download-storage - mountPath: /storage - volumes: - - name: sonarr - hostPath: - path: /mnt/MainPool/Kubernetes/sonarr - - name: sonarr-download-storage - hostPath: - path: /mnt/MainPool/Media \ No newline at end of file diff --git a/cluster/apps/download/sonarr/helm-release.yaml b/cluster/apps/download/sonarr/helm-release.yaml new file mode 100644 index 0000000..f5f8fa7 --- /dev/null +++ b/cluster/apps/download/sonarr/helm-release.yaml @@ -0,0 +1,73 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: 8989 + namespace: download +spec: + interval: 5m + chart: + spec: + chart: app-template + version: 1.3.x + sourceRef: + kind: HelmRepository + name: bjws-charts + namespace: flux-system + + values: + image: + repository: lscr.io/linuxserver/sonarr + tag: latest + env: + TZ: America/New_York + PGID: "1000" + PUID: "1000" + service: + main: + ports: + http: + port: 8989 + probes: + liveness: + enabled: true + custom: true + spec: + httpGet: + path: /ping + port: 8989 + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 + startup: + enabled: false + ingress: + main: + enabled: true + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-production" + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd + hosts: + - host: "k3sson.***REMOVED***" + paths: + - path: / + pathType: Prefix + persistence: + config: + enabled: true + type: hostPath + hostPath: /mnt/MainPool/Kubernetes/sonarr + mountPath: /config + storage: + enabled: true + type: hostPath + hostPath: /mnt/MainPool/Media + mountPath: /storage + + resources: + requests: + cpu: 10m + memory: 350Mi + limits: + memory: 2500Mi \ No newline at end of file diff --git a/cluster/apps/download/sonarr/ingress.yaml b/cluster/apps/download/sonarr/ingress.yaml deleted file mode 100644 index 04cd455..0000000 --- a/cluster/apps/download/sonarr/ingress.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: sonarr-ingress - namespace: download - annotations: - cert-manager.io/cluster-issuer: "letsencrypt-production" - traefik.ingress.kubernetes.io/router.entrypoints: websecure - traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd -spec: - rules: - - host: "k3sson.***REMOVED***" - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: sonarr - port: - name: sonarr \ No newline at end of file diff --git a/cluster/apps/download/sonarr/kustomization.yaml b/cluster/apps/download/sonarr/kustomization.yaml index b81e0e0..ea3145d 100644 --- a/cluster/apps/download/sonarr/kustomization.yaml +++ b/cluster/apps/download/sonarr/kustomization.yaml @@ -1,6 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- ./deployment.yaml -- ./ingress.yaml -- ./service.yaml \ No newline at end of file +- ./helm-release.yaml \ No newline at end of file diff --git a/cluster/apps/download/sonarr/service.yaml b/cluster/apps/download/sonarr/service.yaml deleted file mode 100644 index 1c2525d..0000000 --- a/cluster/apps/download/sonarr/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: sonarr - namespace: download - - labels: - app: sonarr - kubernetes.io/name: "sonarr" -spec: - selector: - app: sonarr - ports: - - name: sonarr - port: 8989 - targetPort: 8989 \ No newline at end of file