59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
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
|
|
image: plexinc/pms-docker:latest@sha256:1846de6eb835a046d1c5bbffddc0c3ed44e5fa1c56f2ad8deb1dafd00fc61bc2
|
|
ports:
|
|
- name: plex
|
|
containerPort: 32400 #PMS
|
|
- name: plex-udp
|
|
containerPort: 32400
|
|
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
|
|
value: "\x31\x30\x30\x32" #Corresponds to user id on NFS server (ascii)
|
|
- name: GID
|
|
value: "\x31\x30\x30\x32" #Corresponds to group id on NFS server
|
|
- name: PLEX_CLAIM
|
|
value: claim-7Uz6mbtybov4zzzcCVzx
|
|
- name: HOSTNAME
|
|
value: plex.mziesel.nl
|
|
- name: TZ
|
|
value: Europe/Amsterdam
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: plex-config
|
|
- mountPath: /data
|
|
name: plex-data
|