diff --git a/clusters/cl01tl/applications/prowlarr/Chart.yaml b/clusters/cl01tl/applications/prowlarr/Chart.yaml new file mode 100644 index 000000000..d3f53c4c2 --- /dev/null +++ b/clusters/cl01tl/applications/prowlarr/Chart.yaml @@ -0,0 +1,22 @@ +apiVersion: v2 +name: prowlarr +version: 1.0.0 +description: Prowlarr +keywords: + - prowlarr + - servarr + - trackers +home: https://wiki.alexlebens.dev/doc/prowlarr-ERparmlGES +sources: + - https://github.com/Prowlarr/Prowlarr + - https://github.com/onedr0p/containers/pkgs/container/prowlarr + - https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template +maintainers: + - name: alexlebens +dependencies: + - name: app-template + alias: prowlarr + repository: https://bjw-s.github.io/helm-charts/ + version: 3.7.1 +icon: https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/prowlarr.png +appVersion: 1.28.2.4885 diff --git a/clusters/cl01tl/applications/prowlarr/templates/external-secret.yaml b/clusters/cl01tl/applications/prowlarr/templates/external-secret.yaml new file mode 100644 index 000000000..2b258e6a1 --- /dev/null +++ b/clusters/cl01tl/applications/prowlarr/templates/external-secret.yaml @@ -0,0 +1,57 @@ +# apiVersion: external-secrets.io/v1beta1 +# kind: ExternalSecret +# metadata: +# name: prowlarr-config-backup-secret +# namespace: {{ .Release.Namespace }} +# labels: +# app.kubernetes.io/name: prowlarr-config-backup-secret +# app.kubernetes.io/instance: {{ .Release.Name }} +# app.kubernetes.io/version: {{ .Chart.AppVersion }} +# app.kubernetes.io/component: backup +# app.kubernetes.io/part-of: {{ .Release.Name }} +# spec: +# secretStoreRef: +# kind: ClusterSecretStore +# name: vault +# target: +# template: +# mergePolicy: Merge +# engineVersion: v2 +# data: +# RESTIC_REPOSITORY: "{{ `{{ .BUCKET_ENDPOINT }}` }}/prowlarr/prowlarr-config" +# data: +# - secretKey: BUCKET_ENDPOINT +# remoteRef: +# conversionStrategy: Default +# decodingStrategy: None +# key: /cl01tl/volsync/restic/config +# metadataPolicy: None +# property: S3_BUCKET_ENDPOINT +# - secretKey: RESTIC_PASSWORD +# remoteRef: +# conversionStrategy: Default +# decodingStrategy: None +# key: /cl01tl/volsync/restic/config +# metadataPolicy: None +# property: RESTIC_PASSWORD +# - secretKey: AWS_DEFAULT_REGION +# remoteRef: +# conversionStrategy: Default +# decodingStrategy: None +# key: /cl01tl/volsync/restic/config +# metadataPolicy: None +# property: AWS_DEFAULT_REGION +# - secretKey: AWS_ACCESS_KEY_ID +# remoteRef: +# conversionStrategy: Default +# decodingStrategy: None +# key: /digital-ocean/home-infra/volsync-backups +# metadataPolicy: None +# property: access_key +# - secretKey: AWS_SECRET_ACCESS_KEY +# remoteRef: +# conversionStrategy: Default +# decodingStrategy: None +# key: /digital-ocean/home-infra/volsync-backups +# metadataPolicy: None +# property: secret_key diff --git a/clusters/cl01tl/applications/prowlarr/templates/http-route.yaml b/clusters/cl01tl/applications/prowlarr/templates/http-route.yaml new file mode 100644 index 000000000..d27713274 --- /dev/null +++ b/clusters/cl01tl/applications/prowlarr/templates/http-route.yaml @@ -0,0 +1,30 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: http-route-prowlarr + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: http-route-prowlarr + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} + app.kubernetes.io/component: web + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + parentRefs: + - group: gateway.networking.k8s.io + kind: Gateway + name: traefik-gateway + namespace: traefik + hostnames: + - prowlarr.alexlebens.net + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - group: '' + kind: Service + name: prowlarr + port: 80 + weight: 100 diff --git a/clusters/cl01tl/applications/prowlarr/templates/replication-source.yaml b/clusters/cl01tl/applications/prowlarr/templates/replication-source.yaml new file mode 100644 index 000000000..18a6b9806 --- /dev/null +++ b/clusters/cl01tl/applications/prowlarr/templates/replication-source.yaml @@ -0,0 +1,37 @@ +# apiVersion: volsync.backube/v1alpha1 +# kind: ReplicationSource +# metadata: +# name: prowlarr-config-backup-source +# namespace: {{ .Release.Namespace }} +# labels: +# app.kubernetes.io/name: prowlarr-config-backup-source +# app.kubernetes.io/instance: {{ .Release.Name }} +# app.kubernetes.io/version: {{ .Chart.AppVersion }} +# app.kubernetes.io/component: backup +# app.kubernetes.io/part-of: {{ .Release.Name }} +# spec: +# sourcePVC: prowlarr-config +# trigger: +# schedule: 0 0 */3 * * +# restic: +# pruneIntervalDays: 14 +# repository: prowlarr-config-backup-secret +# retain: +# hourly: 1 +# daily: 1 +# weekly: 1 +# monthly: 2 +# yearly: 4 +# moverSecurityContext: +# runAsUser: 568 +# runAsGroup: 568 +# fsGroup: 568 +# fsGroupChangePolicy: OnRootMismatch +# supplementalGroups: +# - 44 +# - 100 +# - 109 +# - 65539 +# copyMethod: Snapshot +# storageClassName: ceph-block-delete +# volumeSnapshotClassName: ceph-blockpool-snapshot diff --git a/clusters/cl01tl/applications/prowlarr/values.yaml b/clusters/cl01tl/applications/prowlarr/values.yaml new file mode 100644 index 000000000..eb9e75c6c --- /dev/null +++ b/clusters/cl01tl/applications/prowlarr/values.yaml @@ -0,0 +1,69 @@ +prowlarr: + controllers: + main: + type: deployment + replicas: 1 + strategy: Recreate + revisionHistoryLimit: 3 + pod: + securityContext: + runAsUser: 568 + runAsGroup: 568 + fsGroup: 568 + fsGroupChangePolicy: OnRootMismatch + supplementalGroups: + - 44 + - 100 + - 109 + - 65539 + containers: + main: + image: + repository: ghcr.io/onedr0p/prowlarr + tag: 1.31.2.4975 + pullPolicy: IfNotPresent + env: + - name: TZ + value: US/Central + probes: + liveness: + enabled: false + custom: true + spec: + exec: + command: + - /usr/bin/env + - bash + - -c + - curl --fail localhost:8686/api/v1/system/status?apiKey=`IFS=\> && while + read -d \< E C; do if [[ $E = "ApiKey" ]]; then echo $C; fi; done < /config/config.xml` + failureThreshold: 5 + initialDelaySeconds: 60 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 10 + resources: + requests: + cpu: 10m + memory: 256Mi + serviceAccount: + create: true + service: + main: + controller: main + ports: + http: + port: 80 + targetPort: 9696 + protocol: HTTP + persistence: + config: + storageClass: ceph-block + accessMode: ReadWriteOnce + size: 1Gi + retain: true + advancedMounts: + main: + main: + - path: /config + readOnly: false