mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
100 lines
2.2 KiB
YAML
100 lines
2.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: radarr
|
|
spec:
|
|
revisionHistoryLimit: 3
|
|
selector:
|
|
matchLabels:
|
|
app: radarr
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: radarr
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: configs-nfs
|
|
- name: downloads
|
|
persistentVolumeClaim:
|
|
claimName: downloads-nfs
|
|
containers:
|
|
- name: radarr
|
|
image: linuxserver/radarr
|
|
securityContext:
|
|
runAsUser: 0
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 7878
|
|
name: radarr-port
|
|
protocol: TCP
|
|
env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: TZ
|
|
value: Australia/Melbourne
|
|
volumeMounts:
|
|
- name: config
|
|
subPath: radarr
|
|
mountPath: /config
|
|
- name: downloads
|
|
subPath: radarr
|
|
mountPath: /downloads
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1024Mi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: radarr
|
|
labels:
|
|
app: radarr
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 80
|
|
targetPort: radarr-port
|
|
protocol: TCP
|
|
selector:
|
|
app: radarr
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: radarr-ingress
|
|
annotations:
|
|
kubernetes.io/ingress.class: "nginx"
|
|
kubernetes.io/tls-acme: "true"
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
nginx.ingress.kubernetes.io/auth-url: "https://id.junv.me/oauth2/auth"
|
|
nginx.ingress.kubernetes.io/auth-signin: "https://id.junv.me/oauth2/start?rd=https%3A%2F%2F$host$request_uri"
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- radarr.junv.me
|
|
secretName: radarr-tls
|
|
rules:
|
|
- host: radarr.junv.me
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: radarr
|
|
port:
|
|
number: 80
|