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,58 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: plex
labels:
app.kubernetes.io/name: plex
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: plex
template:
metadata:
labels:
app.kubernetes.io/name: plex
spec:
volumes:
- name: nfs-vol
nfs:
server: 192.168.0.114
path: /mnt/test1/media/
- name: transcode
persistentVolumeClaim:
claimName: transcode-plex
- name: config
persistentVolumeClaim:
claimName: config-plex
containers:
- name: plex
image: ghcr.io/hotio/plex:latest
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: UMASK
value: "002"
- name: TZ
value: "Etc/UTC"
- name: PLEX_CLAIM_TOKEN
valueFrom:
secretKeyRef:
name: plex-claim
key: PLEX_CLAIM
- name: PELX_BETA_INSTALL
value: "true"
- name: PLEX_PURGE_CODECS
value: "false"
ports:
- containerPort: 32400
volumeMounts:
- name: config
mountPath: /config
- name: transcode
mountPath: /transcode
- name: nfs-vol
mountPath: /media

View File

@@ -1,49 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: plex
labels:
app.kubernetes.io/name: plex
spec:
volumes:
- name: nfs-vol
nfs:
server: 192.168.0.114
path: /mnt/test1/media/
- name: transcode
persistentVolumeClaim:
claimName: transcode-plex
- name: config
persistentVolumeClaim:
claimName: config-plex
containers:
- name: plex
image: ghcr.io/hotio/plex:latest
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: UMASK
value: "002"
- name: TZ
value: "Etc/UTC"
- name: PLEX_CLAIM_TOKEN
valueFrom:
secretKeyRef:
name: plex-claim
key: PLEX_CLAIM
- name: PELX_BETA_INSTALL
value: "true"
- name: PLEX_PURGE_CODECS
value: "false"
ports:
- containerPort: 32400
volumeMounts:
- name: config
mountPath: /config
- name: transcode
mountPath: /transcode
- name: nfs-vol
mountPath: /media

View File

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