switched to deployments for easier restarts also moved pvc's after

accidntally deleting them :(
This commit is contained in:
2024-11-13 07:20:17 +01:00
parent 6c64c14934
commit 5b2b526113
24 changed files with 375 additions and 257 deletions

View File

@@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: bazarr
labels:
app.kubernetes.io/name: bazarr
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: bazarr
template:
metadata:
labels:
app.kubernetes.io/name: bazarr
spec:
volumes:
- name: nfs-vol
nfs:
server: 192.168.0.114
path: /mnt/test1/media/
- name: config
persistentVolumeClaim:
claimName: config-bazarr
containers:
- name: bazarr
image: ghcr.io/hotio/bazarr:latest
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: UMASK
value: "002"
- name: TZ
value: "Etc/UTC"
- name: WEBUI_PORTS
value: "6767/tcp,6767/udp"
ports:
- containerPort: 6767
volumeMounts:
- name: config
mountPath: /config
- name: nfs-vol
mountPath: /media

View File

@@ -1,37 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: bazarr
labels:
app.kubernetes.io/name: bazarr
spec:
volumes:
- name: nfs-vol
nfs:
server: 192.168.0.114
path: /mnt/test1/media/
- name: config
persistentVolumeClaim:
claimName: config-bazarr
containers:
- name: bazarr
image: ghcr.io/hotio/bazarr:latest
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: UMASK
value: "002"
- name: TZ
value: "Etc/UTC"
- name: WEBUI_PORTS
value: "6767/tcp,6767/udp"
ports:
- containerPort: 6767
volumeMounts:
- name: config
mountPath: /config
- name: nfs-vol
mountPath: /media

View File

@@ -1,9 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: config-bazarr
spec:
accessModes: [ReadWriteOnce]
resources: { requests: { storage: 1Gi } }