latest updates

This commit is contained in:
Kriss 2024-03-02 11:36:34 +01:00
parent e4f59a7da1
commit a2e793e3cb
6 changed files with 107 additions and 1 deletions

3
docker/plex.sh Executable file
View 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

View File

@ -29,7 +29,7 @@ spec:
containers:
- env:
- name: PMA_HOST
value: mysql
value: mysql8
- name: PMA_PORT
value: "3306"
- name: PMA_ABSOLUTE_URI

View 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

View File

@ -0,0 +1,12 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: plex-data
spec:
storageClassName: local-path
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi

View 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

View 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