Gluttony-Cluster/plex/plex-deployment.yaml

96 lines
2.3 KiB
YAML
Raw Normal View History

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
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
value: "json"
- name: AUTH_HEADER
value: "X-My-Header"
- 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