scripts/fogcutter/k8s/plex.yml

74 lines
1.6 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: plex
name: plex
namespace: pew
spec:
replicas: 1
selector:
matchLabels:
run: plex
template:
metadata:
labels:
run: plex
spec:
containers:
- name: plex
image: linuxserver/plex:1.20.4.3517-ab5e1197c-ls123
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: VERSION
value: "docker"
volumeMounts:
- mountPath: /config
name: plex-config
readOnly: false
- mountPath: /media/movies
name: bigdata-movies
readOnly: true
- mountPath: /media/music
name: bigdata-music
readOnly: true
- mountPath: /media/media-vtluug
name: vtluug-media
readOnly: true
ports:
- name: http
containerPort: 32400
volumes:
- name: plex-config
hostPath:
path: /bigdata/k8s-config/plex/config
- name: bigdata-movies
hostPath:
path: /bigdata/media/movies
- name: bigdata-music
hostPath:
path: /bigdata/media/music
- name: vtluug-media
hostPath:
path: /media-vtluug
---
apiVersion: v1
kind: Service
metadata:
labels:
run: plex
name: plex
namespace: pew
spec:
selector:
run: plex
ports:
- name: http
port: 32400
protocol: TCP