latest updates
This commit is contained in:
parent
e4f59a7da1
commit
a2e793e3cb
3
docker/plex.sh
Executable file
3
docker/plex.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo nerdctl run -d --name=plex --net=host -e PUID=1000 -e PGID=1000 -e TZ=Europe/Paris -e VERSION=docker -p 32400:32400 -e ADVERTISE_IP=http://antiloop.home.lan:32400 -v /mnt/nas/k8s/pvc-f4978f08-9166-462f-881d-0abc30569b31_default_plex-data:/config -v /mnt/nas/media:/media --device=/dev/dri/renderD128:/dev/dri/renderD128 --restart unless-stopped linuxserver/plex:1.40.0
|
@ -29,7 +29,7 @@ spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: PMA_HOST
|
||||
value: mysql
|
||||
value: mysql8
|
||||
- name: PMA_PORT
|
||||
value: "3306"
|
||||
- name: PMA_ABSOLUTE_URI
|
||||
|
60
k8s/manifests/plex/plex-deploy.yaml
Normal file
60
k8s/manifests/plex/plex-deploy.yaml
Normal file
@ -0,0 +1,60 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
labels:
|
||||
app: plex
|
||||
name: plex
|
||||
namespace: default
|
||||
spec:
|
||||
progressDeadlineSeconds: 600
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 10
|
||||
selector:
|
||||
matchLabels:
|
||||
app: plex
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
app: plex
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: TZ
|
||||
value: Europe/Paris
|
||||
- name: VERSION
|
||||
value: docker
|
||||
image: linuxserver/plex:1.40.0
|
||||
imagePullPolicy: Always
|
||||
name: plex
|
||||
resources: {}
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: pvc-plex
|
||||
- mountPath: /media
|
||||
name: host-media
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: pvc-plex
|
||||
persistentVolumeClaim:
|
||||
claimName: plex-data
|
||||
- hostPath:
|
||||
path: /mnt/nas/media
|
||||
type: ""
|
||||
name: host-media
|
12
k8s/manifests/plex/plex-pvc.yaml
Normal file
12
k8s/manifests/plex/plex-pvc.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: plex-data
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
|
16
k8s/manifests/plex/plex-svc.yaml
Normal file
16
k8s/manifests/plex/plex-svc.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: plex
|
||||
name: plex
|
||||
namespace: default
|
||||
spec:
|
||||
ports:
|
||||
- port: 32400
|
||||
protocol: TCP
|
||||
targetPort: 32400
|
||||
selector:
|
||||
app: plex
|
||||
sessionAffinity: None
|
||||
type: ClusterIP
|
15
k8s/manifests/plex/traefik.yaml
Normal file
15
k8s/manifests/plex/traefik.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: plex
|
||||
namespace: default
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`plex.vilanet.fr`)
|
||||
services:
|
||||
- name: plex
|
||||
port: 32400
|
||||
|
Loading…
Reference in New Issue
Block a user