diff --git a/apps/arr/kustomization.yaml b/apps/arr/kustomization.yaml index 78a1438..a211698 100644 --- a/apps/arr/kustomization.yaml +++ b/apps/arr/kustomization.yaml @@ -7,6 +7,6 @@ resources: - traefik-forward-auth - torrent - prowlarr.yaml - - sonarr + - sonarr.yaml - radarr - lidarr.yaml \ No newline at end of file diff --git a/apps/arr/sonarr.yaml b/apps/arr/sonarr.yaml new file mode 100644 index 0000000..e41a159 --- /dev/null +++ b/apps/arr/sonarr.yaml @@ -0,0 +1,34 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: sonarr + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: applications + source: + repoURL: https://github.com/vehagn/homelab + path: helm/application + helm: + values: |- + name: sonarr + image: + name: lscr.io/linuxserver/sonarr + hostVolumes: + - name: sonarr-config + hostPath: /disk/etc/sonarr + mountPath: /config + service: + containerPort: 8989 + valueFiles: + - ../../apps/arr/common-values.yaml + destination: + namespace: arr + name: in-cluster + syncPolicy: + automated: + selfHeal: true + prune: true + syncOptions: + - CreateNamespace=true diff --git a/apps/arr/sonarr/deployment.yaml b/apps/arr/sonarr/deployment.yaml deleted file mode 100644 index f053449..0000000 --- a/apps/arr/sonarr/deployment.yaml +++ /dev/null @@ -1,37 +0,0 @@ -kind: Deployment -apiVersion: apps/v1 -metadata: - name: sonarr -spec: - replicas: 1 - selector: - matchLabels: - app: sonarr - template: - spec: - volumes: - - name: sonarr-config - hostPath: - path: "/disk/etc/sonarr" - - name: media-data - hostPath: - path: "/disk/data" - containers: - - name: sonarr - image: lscr.io/linuxserver/sonarr - imagePullPolicy: Always - volumeMounts: - - mountPath: "/config" - name: sonarr-config - - mountPath: "/app/data" - name: media-data - env: - - name: PUID - value: "1000" - - name: PGID - value: "1000" - - name: TZ - value: Europe/Oslo - ports: - - name: web - containerPort: 8989 \ No newline at end of file diff --git a/apps/arr/sonarr/kustomization.yaml b/apps/arr/sonarr/kustomization.yaml deleted file mode 100644 index 233ea90..0000000 --- a/apps/arr/sonarr/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: arr - -commonLabels: - app: sonarr - -resources: - - service.yaml - - deployment.yaml \ No newline at end of file diff --git a/apps/arr/sonarr/service.yaml b/apps/arr/sonarr/service.yaml deleted file mode 100644 index ab4fee6..0000000 --- a/apps/arr/sonarr/service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: sonarr -spec: - type: ClusterIP - ports: - - name: web - port: 8989 - selector: - app: sonarr \ No newline at end of file