plex-deploy.yaml
11-07-2021
This is a basic example that has been tested on K3OS.
kubectl apply -f plex-deploy.yaml
Language or Platform: Other
Code:
---
apiVersion: v1
kind: Namespace
metadata:
name: plex
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: plex
namespace: plex
spec:
replicas: 1
selector:
matchLabels:
name: plex
template:
metadata:
labels:
name: plex
spec:
hostNetwork: true
containers:
- resources:
name: plex
image: ghcr.io/linuxserver/plex
volumeMounts:
- mountPath: /config
name: config
- mountPath: /tv
name: tv
- mountPath: /movies
name: movies
- mountPath: /music
name: music
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: VERSION
value: "docker"
volumes:
- name: config
hostPath:
path: /home/rancher/plex/config
- name: tv
hostPath:
path: /home/rancher/plex/tv
- name: movies
hostPath:
path: /home/rancher/plex/movies
- name: music
hostPath:
path: /home/rancher/plex/music
Back