Skip to content

Instantly share code, notes, and snippets.

@clintkev251
Created November 8, 2023 16:28
Show Gist options
  • Save clintkev251/26f2565c0251905e72b7387431d6ba5a to your computer and use it in GitHub Desktop.
Save clintkev251/26f2565c0251905e72b7387431d6ba5a to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: plex
name: plex
namespace: media
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: plex
strategy:
type: Recreate
template:
metadata:
labels:
app: plex
spec:
affinity: {}
priorityClassName: high
containers:
- name: plex
image: plexinc/pms-docker:1.32.7.7621-871adbd44@sha256:b7534724f16ec3af7bb8d9da7be915cb335e37bd060a4a65b05d2dd863158e95
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet:
path: /identity
port: 32400
initialDelaySeconds: 10
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /identity
port: 32400
initialDelaySeconds: 15
timeoutSeconds: 10
resources:
requests:
gpu.intel.com/i915: "1"
cpu: 1000m
memory: 7.5Gi
limits:
gpu.intel.com/i915: "1"
env:
- name: PUID
value: "99"
- name: PGID
value: "100"
- name: TZ
value: America/New_York
- name: VERSION
value: docker
volumeMounts:
- mountPath: /config
name: config
- mountPath: /media
name: media
- mountPath: /transcode
name: transcode
dnsConfig: {}
dnsPolicy: ClusterFirstWithHostNet
hostNetwork: true
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: config
persistentVolumeClaim:
claimName: longhorn-plex
- name: media
nfs:
server: apollo-40.corp
path: /mnt/user/Read_Media/
- name: transcode
emptyDir:
medium: Memory
sizeLimit: 10Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment