kub/cluster/apps/production/radarr/radarr.yaml

97 lines
2 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
2024-07-04 17:28:11 -04:00
kind: Deployment
metadata:
name: radarr
namespace: default
labels:
app: radarr
spec:
replicas: 1
selector:
matchLabels:
app: radarr
template:
metadata:
labels:
app: radarr
spec:
containers:
- name: radarr
image: ghcr.io/linuxserver/radarr@sha256:c5b78b1f1e8556d781788194c4ee2b87ca7e3620b701bfce31499e60ee50eca3
imagePullPolicy: IfNotPresent
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: America/New_York
2024-07-04 17:28:11 -04:00
resources:
requests:
memory: "512Mi"
cpu: "1"
limits:
2024-07-06 09:22:18 -04:00
memory: "1Gi"
cpu: "1"
volumeMounts:
- mountPath: /config
2024-07-04 17:28:11 -04:00
name: radarr-config
2024-07-03 21:40:55 -04:00
- mountPath: /data
name: nas
2024-07-04 12:16:30 -04:00
volumes:
- name: nas
nfs:
path: /mnt/thePool/thePoolShare
server: 10.0.0.10
2024-07-04 17:28:11 -04:00
- name: radarr-config
persistentVolumeClaim:
claimName: radarr-config
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: radarr-config
namespace: default
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: longhorn
---
apiVersion: v1
kind: Service
metadata:
name: headless-radarr
namespace: default
spec:
selector:
app: radarr
ports:
- port: 7878
targetPort: 7878
protocol: TCP
2024-07-06 09:22:18 -04:00
type: ClusterIP
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: radarr
namespace: default
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`radarr.local.mafyuh.com`)
kind: Rule
services:
- name: headless-radarr
port: 7878
middlewares:
- name: default-headers
tls:
secretName: local-mafyuh-com-production-tls