Files
home/k8s_manifests/plex/deployment.yaml
2025-01-16 22:22:53 +01:00

63 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: plex
labels:
app.kubernetes.io/name: plex
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: plex
template:
metadata:
labels:
app.kubernetes.io/name: plex
spec:
volumes:
- name: nfs-vol
nfs:
server: 192.168.0.99
path: /mnt/test1/media/
- name: config
nfs:
path: /mnt/test1/media/config/plex
server: 192.168.0.99
containers:
- name: plex
image: ghcr.io/hotio/plex:latest
livenessProbe:
httpGet:
path: /identity
port: 32400
initialDelaySeconds: 60
failureThreshold: 6
periodSeconds: 10
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: UMASK
value: "002"
- name: TZ
value: "Etc/UTC"
- name: PLEX_CLAIM_TOKEN
valueFrom:
secretKeyRef:
name: plex-claim
key: PLEX_CLAIM
- name: PELX_BETA_INSTALL
value: "true"
- name: PLEX_PURGE_CODECS
value: "false"
ports:
- containerPort: 32400
volumeMounts:
- name: config
mountPath: /config
- name: nfs-vol
mountPath: /media