2023-12-18 00:27:58 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: plex-bundle
|
|
|
|
namespace: plex-ns
|
|
|
|
annotations:
|
|
|
|
force-recreate: true
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: plex
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: plex
|
|
|
|
spec:
|
2023-12-18 00:32:03 +00:00
|
|
|
nodeSelector:
|
|
|
|
kubernetes.io/hostname: gluttony
|
2023-12-18 00:27:58 +00:00
|
|
|
containers:
|
|
|
|
- name: plex
|
|
|
|
image: plexinc/pms-docker:public
|
|
|
|
env:
|
|
|
|
- name: TZ
|
|
|
|
value: EST
|
2023-12-18 00:39:57 +00:00
|
|
|
- name: PLEX_UID
|
2023-12-18 00:50:20 +00:00
|
|
|
value: "1000"
|
2023-12-18 00:39:57 +00:00
|
|
|
- name: PLEX_GID
|
2023-12-18 00:50:20 +00:00
|
|
|
value: "1000"
|
2023-12-18 00:27:58 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 32400
|
|
|
|
- containerPort: 8234
|
|
|
|
- containerPort: 32469
|
|
|
|
- containerPort: 1900
|
|
|
|
- containerPort: 32410
|
|
|
|
- containerPort: 32412
|
|
|
|
- containerPort: 32413
|
|
|
|
- containerPort: 32414
|
|
|
|
volumeMounts:
|
|
|
|
- name: plex-config
|
|
|
|
mountPath: /config
|
|
|
|
- name: plex-media
|
|
|
|
mountPath: /data
|
|
|
|
|
|
|
|
# Sidecar providing access to upload/view/download raw media files
|
|
|
|
- name: filebrowswer
|
2023-12-19 00:49:03 +00:00
|
|
|
image: git.clortox.com/infrastructure/filebrowser:v1.0.1
|
|
|
|
env:
|
|
|
|
- name: ADMIN_PASS
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: filebrowser-secret
|
|
|
|
key: ADMIN-PASS
|
|
|
|
- name: DEFAULT_USERNAME
|
|
|
|
value: "default"
|
|
|
|
- name: DEFAULT_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: filebrowser-secret
|
|
|
|
key: DEFAULT-PASS
|
|
|
|
- name: BRANDING_NAME
|
|
|
|
value: "Media Storage"
|
|
|
|
- name: AUTH_METHOD
|
2023-12-24 01:14:22 +00:00
|
|
|
value: "proxy"
|
2023-12-19 00:49:03 +00:00
|
|
|
- name: AUTH_HEADER
|
2023-12-24 01:14:22 +00:00
|
|
|
value: "X-Auth-User"
|
2023-12-19 00:49:03 +00:00
|
|
|
- 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"
|
2023-12-18 00:27:58 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: plex-media
|
|
|
|
mountPath: /srv
|
|
|
|
ports:
|
2023-12-18 00:34:59 +00:00
|
|
|
- containerPort: 80
|
2023-12-18 00:27:58 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: plex-config
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: plex-pvc-config
|
|
|
|
- name: plex-media
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: plex-pvc-media
|