argocd-test/mediaserver/base/mediaserver-plex-deployment.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:97449a56880ce05fac6171094beab990e9f543d134b8b9787badac069998b961
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