2024-10-26 16:54:03 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: plex
|
|
|
|
namespace: plex
|
|
|
|
labels:
|
|
|
|
app: plexserver
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: plexserver
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: plexserver
|
|
|
|
annotations:
|
|
|
|
spec:
|
|
|
|
volumes:
|
|
|
|
- name: plex-config
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: mediaserver-plex-config-pvc
|
|
|
|
- name: plex-data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: mediaserver-plex-data-pvc
|
|
|
|
containers:
|
|
|
|
- name: plex
|
2024-10-26 16:56:35 +00:00
|
|
|
image: plexinc/pms-docker:latest@sha256:1846de6eb835a046d1c5bbffddc0c3ed44e5fa1c56f2ad8deb1dafd00fc61bc2
|
2024-10-26 16:54:03 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 1
|
|
|
|
memory: 512Mi
|
|
|
|
ports:
|
|
|
|
- name: plex
|
|
|
|
containerPort: 32400 #PMS
|
2024-10-26 16:58:00 +00:00
|
|
|
- name: plex-udp
|
|
|
|
containerPort: 32400
|
2024-10-26 16:54:03 +00:00
|
|
|
protocol: UDP
|
|
|
|
- name: plex-dlna
|
|
|
|
containerPort: 32469 #Plex DLNA
|
|
|
|
- name: plex-discovery
|
|
|
|
containerPort: 5353
|
|
|
|
protocol: UDP
|
|
|
|
- name: plex-dlna-udp
|
|
|
|
containerPort: 1900 #Plex DLNA
|
|
|
|
protocol: UDP
|
|
|
|
env:
|
|
|
|
- name: UID
|
2024-10-26 20:54:00 +00:00
|
|
|
value: "\x31\x30\x30\x32" #Corresponds to user id on NFS server (ascii)
|
2024-10-26 16:54:03 +00:00
|
|
|
- name: GID
|
2024-10-26 20:54:00 +00:00
|
|
|
value: "\x31\x30\x30\x32" #Corresponds to group id on NFS server
|
2024-10-26 16:54:03 +00:00
|
|
|
- name: PLEX_CLAIM
|
2024-10-26 20:54:00 +00:00
|
|
|
value: claim-7Uz6mbtybov4zzzcCVzx
|
2024-10-26 16:54:03 +00:00
|
|
|
- name: HOSTNAME
|
|
|
|
value: plex.mziesel.nl
|
|
|
|
- name: TZ
|
|
|
|
value: Europe/Amsterdam
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /config
|
|
|
|
name: plex-config
|
|
|
|
- mountPath: /data
|
|
|
|
name: plex-data
|