119 lines
2.5 KiB
YAML
119 lines
2.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: bazarr
|
|
namespace: default
|
|
labels:
|
|
app: bazarr
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: bazarr
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: bazarr
|
|
spec:
|
|
containers:
|
|
- name: bazarr
|
|
image: ghcr.io/linuxserver/bazarr@sha256:5015144d4a1e28851d0b7eee5a85ff9a8a5e0bc5135ee2147ae0c511d6c5a9f1
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: TZ
|
|
value: America/New_York
|
|
resources:
|
|
requests:
|
|
memory: "512Mi"
|
|
cpu: "75m"
|
|
limits:
|
|
memory: "535Mi"
|
|
cpu: "100m"
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: bazarr-config
|
|
- mountPath: /data
|
|
name: nas
|
|
volumes:
|
|
- name: nas
|
|
nfs:
|
|
path: /mnt/thePool/thePoolShare
|
|
server: 10.0.0.10
|
|
- name: bazarr-config
|
|
persistentVolumeClaim:
|
|
claimName: bazarr-config
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: bazarr-config
|
|
namespace: default
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
storageClassName: longhorn
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: headless-bazarr
|
|
namespace: default
|
|
spec:
|
|
selector:
|
|
app: bazarr
|
|
ports:
|
|
- port: 6767
|
|
targetPort: 6767
|
|
protocol: TCP
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: bazarr
|
|
namespace: default
|
|
annotations:
|
|
kubernetes.io/ingress.class: traefik-external
|
|
spec:
|
|
rules:
|
|
- host: "bazarr.mafyuh.com"
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: headless-bazarr
|
|
port:
|
|
number: 6767
|
|
tls:
|
|
- hosts:
|
|
- "bazarr.local.mafyuh.com"
|
|
secretName: local-mafyuh-com-production-tls
|
|
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: bazarr-pub
|
|
namespace: default
|
|
annotations:
|
|
kubernetes.io/ingress.class: traefik-external
|
|
spec:
|
|
entryPoints:
|
|
- web
|
|
routes:
|
|
- match: Host(`bazarr.mafyuh.com`)
|
|
kind: Rule
|
|
services:
|
|
- name: headless-bazarr
|
|
port: 6767
|
|
middlewares:
|
|
- name: default-headers
|