feat: add Bazarr deployment, service, and PVC configurations

This commit is contained in:
2025-04-15 08:12:00 +05:30
parent 36bf572142
commit e3cf8f4dfc
3 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: longhorn-bazarr
namespace: default
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 1Gi

View File

@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: Service
metadata:
name: bazarr-service
namespace: default
spec:
type: NodePort
selector:
app: bazarr
ports:
- protocol: TCP
port: 6767
targetPort: 6767
nodePort: 6767

View File

@@ -0,0 +1,47 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bazarr
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: bazarr
template:
metadata:
labels:
app: bazarr
spec:
containers:
- name: bazarr
image: linuxserver/bazarr:1.5.1
ports:
- containerPort: 6767
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "Asia/Kolkata"
volumeMounts:
- name: movies
mountPath: /movies
- name: tv
mountPath: /tv
- name: config
mountPath: /config
volumes:
- name: config
persistentVolumeClaim:
claimName: longhorn-bazarr
- name: tv
nfs:
server: 10.0.0.123
path: merge/series
- name: movies
nfs:
server: 10.0.0.123
path: merge/movies