add bazarr

This commit is contained in:
2020-05-16 12:06:34 +10:00
parent 38256c1353
commit 369e35f289
+103
View File
@@ -590,3 +590,106 @@ spec:
- backend:
serviceName: files
servicePort: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bazarr
spec:
selector:
matchLabels:
app: bazarr
replicas: 1
template:
metadata:
labels:
app: bazarr
spec:
volumes:
- name: config
hostPath:
path: /mnt/config/bazarr
type: DirectoryOrCreate
- name: tv
hostPath:
path: /mnt/downloads/sonarr
type: Directory
- name: movies
hostPath:
path: /mnt/downloads/radarr
type: Directory
containers:
- name: bazarr
image: linuxserver/bazarr
securityContext:
runAsUser: 0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 32400
name: bazarr-port
protocol: TCP
env:
- name: TZ
value: Australia/Melbourne
- name: PUID
value: "1000"
- name: PGID
value: "1000"
volumeMounts:
- name: config
mountPath: /config
- name: tv
mountPath: /tv
- name: movies
mountPath: /movies
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 300m
memory: 512Mi
---
apiVersion: v1
kind: Service
metadata:
name: bazarr
labels:
app: bazarr
spec:
type: ClusterIP
ports:
- port: 80
targetPort: bazarr-port
protocol: TCP
selector:
app: bazarr
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: bazarr-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.home.toozhao.com/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://id.home.toozhao.com/oauth2/start?rd=https%3A%2F%2F$host$request_uri"
spec:
tls:
- hosts:
- bazarr.home.toozhao.com
secretName: bazarr-tls
rules:
- host: bazarr.home.toozhao.com
http:
paths:
- backend:
serviceName: bazarr
servicePort: 80