mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-30 16:19:34 +00:00
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: plex
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: plex
|
|
template:
|
|
spec:
|
|
volumes:
|
|
- name: plex-config
|
|
hostPath:
|
|
path: "/disk/etc/plex"
|
|
- name: media-data
|
|
hostPath:
|
|
path: "/disk/data"
|
|
#- name: plex-config-pv
|
|
# persistentVolumeClaim:
|
|
# claimName: plex-config
|
|
#- name: media-data-pv
|
|
# persistentVolumeClaim:
|
|
# claimName: media-data
|
|
containers:
|
|
- name: plex
|
|
image: lscr.io/linuxserver/plex
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
- mountPath: "/config"
|
|
name: plex-config
|
|
- mountPath: "/app/data"
|
|
name: media-data
|
|
#- mountPath: "/config"
|
|
# name: plex-config-pv
|
|
#- mountPath: "/app/data"
|
|
# name: media-data-pv
|
|
env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: TZ
|
|
value: Europe/Oslo
|
|
ports:
|
|
- name: web
|
|
containerPort: 32400
|
|
- name: a
|
|
containerPort: 1900
|
|
protocol: UDP
|
|
- name: b
|
|
containerPort: 3005
|
|
- name: c
|
|
containerPort: 8324
|
|
- name: d
|
|
containerPort: 32410
|
|
protocol: UDP
|
|
- name: e
|
|
containerPort: 32412
|
|
protocol: UDP
|
|
- name: f
|
|
containerPort: 32413
|
|
protocol: UDP
|
|
- name: g
|
|
containerPort: 32414
|
|
protocol: UDP
|
|
- name: h
|
|
containerPort: 32469 |