Add plexclaim

This commit is contained in:
Tyler Perkins 2024-11-23 15:12:27 -05:00
parent 5208022354
commit 463f1e9d9d
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
3 changed files with 81 additions and 2 deletions

View File

@ -3,6 +3,8 @@ kind: Deployment
metadata:
name: plex
namespace: default
annotations:
force-recreate: true
spec:
replicas: 1
selector:
@ -14,8 +16,46 @@ spec:
app: plex
spec:
containers:
# Sidecar providing access to upload/view/download raw media files
- name: filebrowswer
image: git.clortox.com/infrastructure/filebrowser:v1.0.1
env:
- name: DEFAULT_USERNAME
value: "default"
- name: ADMIN_PASS
value: "CHANGEME"
- name: DEFAULT_PASSWORD
value: "CHANGEME"
- name: BRANDING_NAME
value: "Media Storage"
#- name: AUTH_METHOD
# value: "proxy"
#- name: AUTH_HEADER
# value: "X-Auth-User"
- name: PERM_ADMIN
value: "false"
- name: PERM_EXECUTE
value: "false"
- name: PERM_CREATE
value: "true"
- name: PERM_RENAME
value: "true"
- name: PERM_MODIFY
value: "true"
- name: PERM_DELETE
value: "false"
- name: PERM_SHARE
value: "true"
- name: PERM_DOWNLOAD
value: "true"
volumeMounts:
- name: plex-media
mountPath: /srv
ports:
- containerPort: 80
- name: plex
image: linuxserver/plex:latest
image: plexinc/pms-docker:latest
ports:
- containerPort: 32400
protocol: TCP # Plex web UI
@ -38,14 +78,24 @@ spec:
volumeMounts:
- mountPath: /media
name: plex-media
- mountPath: /data
name: plex-config
env:
- name: PUID
value: "1000" # Adjust based on your Plex user ID
- name: PGID
value: "1000" # Adjust based on your Plex group ID
- name: TZ
value: "America/New_York" # Adjust based on your timezone
value: "EST" # Adjust based on your timezone
- name: PLEX_CLAIM
valueFrom:
secretKeyRef:
name: plexclaim
key: PLEXCLAIM
volumes:
- name: plex-media
persistentVolumeClaim:
claimName: plex-media-pvc
- name: plex-config
persistentVolumeClaim:
claimName: plex-pvc-config

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: plex-pvc-config
namespace: default
spec:
storageClassName: longhorn
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Gi

View File

@ -0,0 +1,16 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: plexclaim
namespace: default
spec:
encryptedData:
PLEXCLAIM: AgC8W07tOXXLE5qChpUXQU1cUcAp9FKF0jAyIMmUrtMv0hEEmVYJA3D8oUSvk8kpO4w14qLyet7jlEk5D5bzW8B0svxaefRVGCDCf2b/CIxp0UtnVJsnzZdLfv4TWbtmr5cKUg3n8CtcwIzkQolUKoiz2de8J3MaqxfkLlzY/ZAHBD7i3vOw9kfATSPYHjZez0aDVr59/OWhJXYbX34Fp2yh2GhgRBPBRI54SIJ8kfRXfWSjGyL5Wf10++MF//DmGAiyzEVnBhZYcxb8C2QIknDlt9y4gQRA8PWZqdxVD6LYHOhcAV2MRFeDpJwLcaCipiIGaE8EeDkAzWLQE/nEHctrEyqG72BhfgDu0Ezwqph9AlTliIIPrrzwL07Xeuy0lqoKJ0qvjw91VROTx1SFDg9i3Xm5TbBlBV7MunMNeeE7yar/2RlSsemykkhnUvDLimjZZjeeF8Cp9rq1W0Lq3v9omPeCSNC4JbB8z6XECV9vdaIUPP182dxntFO6ryjSE14/8wu5YYcGjdvvaIUlWD886ZItAmVg1c7OoAGeU4GRlUpGYOG44ccwYuKiNlkN0QSu3IxrZJ0Bd8reC1+gpe7K4mdFjiYlcKXiU/d77o80/d8fFeW4zC54O8kFJzIrvCODZ0TL9W4ztsf4vH0nv2folp19V3aXFHhBJgdQdytC169sxGkPRU2gq2L8OFInX53jLSH8UUgsBVfWnSZodTc687F/M6b7salZww==
template:
metadata:
creationTimestamp: null
name: plexclaim
namespace: default
type: Opaque