Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use stateful chart for *arr #21

Merged
merged 3 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 40 additions & 4 deletions applications/app-of-apps/templates/media-apps/prowlarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,49 @@ metadata:
spec:
project: media
source:
repoURL: {{ .Values.repository.url }}
targetRevision: HEAD
path: charts/x-arr
repoURL: {{ .Values.charts.repository }}
targetRevision: 1.1.0
chart: stateful

helm:
valuesObject:
{{- toYaml .Values.prowlarr.valuesObject | nindent 8 }}
podAnnotations:
linkerd.io/inject: enabled
replicaCount: 1
image:
repository: lscr.io/linuxserver/prowlarr
tag: latest
pullPolicy: Always
service:
port: 9696
ingress:
enabled: true
host: prowlarr.d3adb5.net
className: nginx
tls:
enabled: true
secretName: prowlarr-tls
annotations:
cert-manager.io/cluster-issuer: letsencrypt
extraEnv:
- name: TZ
value: America/Vancouver
- name: PUID
value: "1000"
- name: PGID
value: "1000"
extraVolumeMounts:
- name: config
mountPath: /config
extraVolumeClaimTemplates:
- metadata:
name: config
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: longhorn-nvme
resources:
requests:
storage: 512Mi

destination:
server: https://kubernetes.default.svc
Expand Down
20 changes: 14 additions & 6 deletions applications/app-of-apps/templates/media-apps/radarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ metadata:
spec:
project: media
source:
repoURL: {{ .Values.repository.url }}
targetRevision: HEAD
path: charts/x-arr
repoURL: {{ .Values.charts.repository }}
targetRevision: 1.1.0
chart: stateful

helm:
valuesObject:
Expand All @@ -20,9 +20,6 @@ spec:
repository: lscr.io/linuxserver/radarr
tag: latest
pullPolicy: Always
persistence:
config:
storageClass: longhorn-nvme
resources:
requests:
cpu: 100m
Expand Down Expand Up @@ -55,6 +52,17 @@ spec:
extraVolumeMounts:
- name: movies-library
mountPath: /downloads
- name: config
mountPath: /config
extraVolumeClaimTemplates:
- metadata:
name: config
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: longhorn-nvme
resources:
requests:
storage: 512Mi

destination:
server: https://kubernetes.default.svc
Expand Down
20 changes: 14 additions & 6 deletions applications/app-of-apps/templates/media-apps/sonarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ metadata:
spec:
project: media
source:
repoURL: {{ .Values.repository.url }}
targetRevision: HEAD
path: charts/x-arr
repoURL: {{ .Values.charts.repository }}
targetRevision: 1.1.0
chart: stateful

helm:
valuesObject:
Expand All @@ -20,9 +20,6 @@ spec:
repository: lscr.io/linuxserver/sonarr
tag: latest
pullPolicy: Always
persistence:
config:
storageClass: longhorn-nvme
resources:
requests:
cpu: 100m
Expand Down Expand Up @@ -55,6 +52,17 @@ spec:
extraVolumeMounts:
- name: tv-library
mountPath: /downloads
- name: config
mountPath: /config
extraVolumeClaimTemplates:
- metadata:
name: config
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: longhorn-nvme
resources:
requests:
storage: 512Mi

destination:
server: https://kubernetes.default.svc
Expand Down
30 changes: 0 additions & 30 deletions applications/app-of-apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ transmission:

sonarr:
namespace: media
valuesObject:

radarr:
namespace: media
Expand All @@ -66,32 +65,3 @@ overseerr:

prowlarr:
namespace: media
valuesObject:
podAnnotations:
linkerd.io/inject: enabled
replicaCount: 1
image:
repository: lscr.io/linuxserver/prowlarr
tag: latest
pullPolicy: Always
persistence:
config:
storageClass: longhorn-nvme
service:
port: 9696
ingress:
enabled: true
host: prowlarr.d3adb5.net
className: nginx
tls:
enabled: true
secretName: prowlarr-tls
annotations:
cert-manager.io/cluster-issuer: letsencrypt
extraEnv:
- name: TZ
value: America/Vancouver
- name: PUID
value: "1000"
- name: PGID
value: "1000"