123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- ---
- apiVersion: v1
- kind: Namespace
- metadata:
- name: plex
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: plex
- namespace: plex
- spec:
- selector:
- matchLabels:
- app: plex
- replicas: 1
- template:
- metadata:
- labels:
- app: plex
- spec:
- containers:
- - name: plex
- image: linuxserver/plex:amd64-version-1.30.2.6563-3d4dc0cce
- ports:
- - containerPort: 32400
- name: http-web-svc
- volumeMounts:
- - mountPath: "/config"
- name: config
- - mountPath: "/config/Library/Application Support/Plex Media Server/Media"
- name: media-metadata
- - mountPath: "/media"
- name: media
- - mountPath: "/transcodes"
- name: tmpfs
- env:
- - name: PUID
- value: "1000"
- - name: PGID
- value: "1000"
- - name: NVIDIA_DRIVER_CAPABILITIES
- value: "all"
- livenessProbe:
- httpGet:
- path: /web/index.html
- port: 32400
- failureThreshold: 5
- initialDelaySeconds: 10
- periodSeconds: 30
- timeoutSeconds: 10
- resources:
- limits:
- nvidia.com/gpu: 1
- volumes:
- - name: config
- persistentVolumeClaim:
- claimName: plex-config-pvc
- - name: media-metadata
- persistentVolumeClaim:
- claimName: plex-metadata-pvc
- - name: media
- persistentVolumeClaim:
- claimName: plex-pvc
- - name: tmpfs
- emptyDir:
- medium: Memory
- sizeLimit: 12Gi
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: plex-service
- namespace: plex
- spec:
- selector:
- app: plex
- type: ClusterIP
- ports:
- - name: plex-web-port
- protocol: TCP
- port: 32400
- targetPort: http-web-svc
- ---
- apiVersion: traefik.containo.us/v1alpha1
- kind: IngressRoute
- metadata:
- name: plex
- namespace: plex
- spec:
- entryPoints:
- - websecure
- routes:
- - kind: Rule
- match: Host(`plex.jibby.org`)
- services:
- - kind: Service
- name: plex-service
- port: 32400
|