feat: Add Lidarr
This commit is contained in:
parent
cd0c3724c6
commit
0633deb983
8 changed files with 156 additions and 0 deletions
|
|
@ -143,6 +143,25 @@ spec:
|
||||||
---
|
---
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: lidarr
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://code.peterg.nl/wheatley/kubernetes.git
|
||||||
|
path: k8s-wheatley/lidarr
|
||||||
|
targetRevision: HEAD
|
||||||
|
destination:
|
||||||
|
server: https://10.13.37.10:6443
|
||||||
|
namespace: lidarr
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: prowlarr
|
name: prowlarr
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
|
|
|
||||||
9
k8s-wheatley/lidarr/configmap.yaml
Normal file
9
k8s-wheatley/lidarr/configmap.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: lidarr-envs
|
||||||
|
data:
|
||||||
|
PUID: "1000"
|
||||||
|
PGID: "1000"
|
||||||
|
TZ: Europe/Amsterdam
|
||||||
50
k8s-wheatley/lidarr/deployments.yaml
Normal file
50
k8s-wheatley/lidarr/deployments.yaml
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: lidarr
|
||||||
|
labels:
|
||||||
|
app: lidarr
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
serviceName: lidarr
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: lidarr
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: lidarr
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: lidarr
|
||||||
|
image: linuxserver/lidarr
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 8686
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: lidarr-envs
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /config
|
||||||
|
name: lidarr-config
|
||||||
|
- mountPath: /shared/media
|
||||||
|
name: nfs-media
|
||||||
|
securityContext:
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- "ALL"
|
||||||
|
add:
|
||||||
|
- "CHOWN"
|
||||||
|
- "SETUID"
|
||||||
|
- "SETGID"
|
||||||
|
volumes:
|
||||||
|
- name: lidarr-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: lidarr-storage
|
||||||
|
- name: nfs-media
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: nfs-media
|
||||||
16
k8s-wheatley/lidarr/ingress.yaml
Normal file
16
k8s-wheatley/lidarr/ingress.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: lidarr-route
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: internal
|
||||||
|
namespace: kube-system
|
||||||
|
sectionName: https
|
||||||
|
hostnames:
|
||||||
|
- "lidarr.wheatley.in"
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: lidarr
|
||||||
|
port: 80
|
||||||
33
k8s-wheatley/lidarr/kustomization.yaml
Normal file
33
k8s-wheatley/lidarr/kustomization.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: lidarr
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- ../../kustomize-bases/nfs-media
|
||||||
|
- configmap.yaml
|
||||||
|
- deployments.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- services.yaml
|
||||||
|
- namespace.yaml
|
||||||
|
|
||||||
|
patches:
|
||||||
|
- target:
|
||||||
|
kind: PersistentVolume
|
||||||
|
name: nfs-media
|
||||||
|
patch: |
|
||||||
|
- op: replace
|
||||||
|
path: /metadata/name
|
||||||
|
value: nfs-media-lidarr
|
||||||
|
- target:
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
name: nfs-media
|
||||||
|
patch: |
|
||||||
|
- op: replace
|
||||||
|
path: /spec/volumeName
|
||||||
|
value: nfs-media-lidarr
|
||||||
|
|
||||||
|
images:
|
||||||
|
- name: linuxserver/lidarr
|
||||||
|
newTag: 3.1.0@sha256:d2f944115de2ca6754ad142ee92f9db481b1574c7bc030974d624584106b78d7
|
||||||
5
k8s-wheatley/lidarr/namespace.yaml
Normal file
5
k8s-wheatley/lidarr/namespace.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: lidarr
|
||||||
12
k8s-wheatley/lidarr/pvc.yaml
Normal file
12
k8s-wheatley/lidarr/pvc.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: lidarr-storage
|
||||||
|
spec:
|
||||||
|
storageClassName: piraeus-lvmthin
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
12
k8s-wheatley/lidarr/services.yaml
Normal file
12
k8s-wheatley/lidarr/services.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: lidarr
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: lidarr
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8686
|
||||||
Loading…
Add table
Add a link
Reference in a new issue