Gluttony-Cluster/cluster/plex/plex-deployment.yaml

102 lines
2.9 KiB
YAML
Raw Normal View History

2024-11-23 19:56:59 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: plex
namespace: default
2024-11-23 20:12:27 +00:00
annotations:
force-recreate: true
2024-11-23 19:56:59 +00:00
spec:
replicas: 1
selector:
matchLabels:
app: plex
template:
metadata:
labels:
app: plex
spec:
containers:
2024-11-23 20:12:27 +00:00
# Sidecar providing access to upload/view/download raw media files
- name: filebrowswer
image: git.clortox.com/infrastructure/filebrowser:v1.0.1
env:
- name: DEFAULT_USERNAME
value: "default"
- name: ADMIN_PASS
value: "CHANGEME"
- name: DEFAULT_PASSWORD
value: "CHANGEME"
- name: BRANDING_NAME
value: "Media Storage"
#- name: AUTH_METHOD
# value: "proxy"
#- name: AUTH_HEADER
# value: "X-Auth-User"
- name: PERM_ADMIN
value: "false"
- name: PERM_EXECUTE
value: "false"
- name: PERM_CREATE
value: "true"
- name: PERM_RENAME
value: "true"
- name: PERM_MODIFY
value: "true"
- name: PERM_DELETE
value: "false"
- name: PERM_SHARE
value: "true"
- name: PERM_DOWNLOAD
value: "true"
volumeMounts:
- name: plex-media
mountPath: /srv
ports:
- containerPort: 80
2024-11-23 19:56:59 +00:00
- name: plex
2024-11-23 20:12:27 +00:00
image: plexinc/pms-docker:latest
2024-11-23 19:56:59 +00:00
ports:
- containerPort: 32400
protocol: TCP # Plex web UI
- containerPort: 32410
protocol: UDP # DLNA discovery
- containerPort: 1900
protocol: UDP # DLNA
- containerPort: 32412
protocol: UDP # Plex DLNA additional
- containerPort: 32413
protocol: UDP # Plex DLNA additional
- containerPort: 32414
protocol: UDP # Plex DLNA additional
- containerPort: 3005
protocol: TCP # Plex companion
- containerPort: 8324
protocol: TCP # Plex GDM
- containerPort: 32469
protocol: TCP # DLNA
volumeMounts:
- mountPath: /media
name: plex-media
2024-11-23 20:12:27 +00:00
- mountPath: /data
name: plex-config
2024-11-23 19:56:59 +00:00
env:
- name: PUID
value: "1000" # Adjust based on your Plex user ID
- name: PGID
value: "1000" # Adjust based on your Plex group ID
- name: TZ
2024-11-23 20:12:27 +00:00
value: "EST" # Adjust based on your timezone
- name: PLEX_CLAIM
valueFrom:
secretKeyRef:
name: plexclaim
key: PLEXCLAIM
2024-11-23 19:56:59 +00:00
volumes:
- name: plex-media
persistentVolumeClaim:
claimName: plex-media-pvc
2024-11-23 20:12:27 +00:00
- name: plex-config
persistentVolumeClaim:
claimName: plex-pvc-config