Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
apiVersion: v1
kind: Namespace
metadata:
name: tv
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: plex
namespace: tv
spec:
replicas: 1
template:
metadata:
labels:
app: plex
spec:
hostNetwork: true
containers:
- name: plex
image: linuxserver/plex
env:
- name: "TZ"
value: "America/Chicago"
- name: "VERSION"
value: "latest"
volumeMounts:
- mountPath: "/tv"
name: "tv"
- mountPath: "/movies"
name: "movies"
- mountPath: "/config"
name: "config"
volumes:
- name: tv
persistentVolumeClaim:
claimName: plex-tv
- name: movies
persistentVolumeClaim:
claimName: plex-movies
- name: config
hostPath:
path: "/mnt/data/plex-config"
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: plex-tv
namespace: tv
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 500Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: plex-movies
namespace: tv
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 550Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: nas-tv
spec:
capacity:
storage: 500Gi
accessModes:
- ReadWriteMany
nfs:
server: 192.168.1.2
path: "/volume3/Videos/tv"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: nas-movies
spec:
capacity:
storage: 550Gi
accessModes:
- ReadWriteMany
nfs:
server: 192.168.1.2
path: "/volume3/Videos/movies"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment