97 lines
2 KiB
YAML
97 lines
2 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:86ad012fc31e974dcf0147900a202443d92d12f4334a9e4ec89baa2052fb12fa
|
||
|
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: traefik.io/v1alpha1
|
||
|
kind: IngressRoute
|
||
|
metadata:
|
||
|
name: bazarr
|
||
|
namespace: default
|
||
|
annotations:
|
||
|
kubernetes.io/ingress.class: traefik-external
|
||
|
spec:
|
||
|
entryPoints:
|
||
|
- websecure
|
||
|
routes:
|
||
|
- match: Host(`bazarr.local.mafyuh.com`)
|
||
|
kind: Rule
|
||
|
services:
|
||
|
- name: headless-bazarr
|
||
|
port: 6767
|
||
|
middlewares:
|
||
|
- name: default-headers
|
||
|
tls:
|
||
|
secretName: local-mafyuh-com-production-tls
|