2026-01-29 23:22:42 +01:00
|
|
|
---
|
|
|
|
|
apiVersion: apps/v1
|
2026-02-04 10:52:12 +01:00
|
|
|
kind: StatefulSet
|
2026-01-29 23:22:42 +01:00
|
|
|
metadata:
|
|
|
|
|
name: plex
|
|
|
|
|
labels:
|
|
|
|
|
app: plex
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
2026-02-04 10:52:12 +01:00
|
|
|
serviceName: plex
|
2026-01-29 23:22:42 +01:00
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: plex
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: plex
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: plex
|
2026-02-01 18:42:46 +01:00
|
|
|
image: plexinc/pms-docker
|
2026-01-29 23:22:42 +01:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 32400
|
|
|
|
|
envFrom:
|
|
|
|
|
- configMapRef:
|
|
|
|
|
name: plex-envs
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- mountPath: /config
|
|
|
|
|
name: plex-config
|
|
|
|
|
- mountPath: /data
|
|
|
|
|
name: nfs-media
|
|
|
|
|
securityContext:
|
|
|
|
|
seccompProfile:
|
|
|
|
|
type: RuntimeDefault
|
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
|
capabilities:
|
|
|
|
|
drop:
|
|
|
|
|
- "ALL"
|
|
|
|
|
add:
|
|
|
|
|
- "CHOWN"
|
|
|
|
|
- "SETUID"
|
|
|
|
|
- "SETGID"
|
2026-02-04 10:52:12 +01:00
|
|
|
volumes:
|
|
|
|
|
- name: plex-config
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: plex-storage
|
|
|
|
|
- name: nfs-media
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: nfs-media
|