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.114 path: /mnt/test1/media/ - name: transcode persistentVolumeClaim: claimName: transcode-plex - name: config persistentVolumeClaim: claimName: config-plex containers: - name: plex image: ghcr.io/hotio/plex:latest 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: transcode mountPath: /transcode - name: nfs-vol mountPath: /media