Created
February 9, 2019 00:16
-
-
Save cclloyd/e7739e890c01c2f0ba9499dba9a45cc5 to your computer and use it in GitHub Desktop.
Plex in kubernetes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: plex | |
| labels: | |
| app: plex | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: plex | |
| template: | |
| metadata: | |
| labels: | |
| app: plex | |
| spec: | |
| containers: | |
| - name: plex | |
| image: linuxserver/plex | |
| imagePullPolicy: Always | |
| ports: | |
| - containerPort: 32400 | |
| name: plex | |
| - containerPort: 3005 | |
| name: plex-2 | |
| - containerPort: 8324 | |
| name: plex-3 | |
| - containerPort: 32469 | |
| name: plex-4 | |
| - containerPort: 1900 | |
| name: plex-5 | |
| - containerPort: 32410 | |
| name: plex-6 | |
| - containerPort: 32412 | |
| name: plex-7 | |
| - containerPort: 32413 | |
| name: plex-8 | |
| - containerPort: 32414 | |
| name: plex-9 | |
| env: | |
| - name: PGID | |
| value: "17464003" | |
| - name: PUID | |
| value: "17464002" | |
| - name: TZ | |
| value: "America/New_York" | |
| - name: PLEX_CLAIM | |
| value: "claim-asdfasdfasdf" | |
| volumeMounts: | |
| - name: plex-config | |
| mountPath: /config | |
| - name: plex-media | |
| mountPath: /Media | |
| volumes: | |
| - name: plex-config | |
| nfs: | |
| server: 10.0.0.20 | |
| path: /srv/K8s/plex-config | |
| - name: plex-media | |
| nfs: | |
| server: 10.0.0.20 | |
| path: /srv/Media | |
| --- | |
| kind: Service | |
| apiVersion: v1 | |
| metadata: | |
| name: plex | |
| spec: | |
| selector: | |
| app: plex | |
| ports: | |
| - name: plex | |
| protocol: TCP | |
| port: 32400 | |
| targetPort: 32400 | |
| - name: plex-2 | |
| protocol: TCP | |
| port: 3005 | |
| targetPort: 3005 | |
| - name: plex-3 | |
| protocol: TCP | |
| port: 8324 | |
| targetPort: 8324 | |
| - name: plex-4 | |
| protocol: TCP | |
| port: 32469 | |
| targetPort: 32469 | |
| - name: plex-5 | |
| protocol: UDP | |
| port: 1900 | |
| targetPort: 1900 | |
| - name: plex-6 | |
| protocol: UDP | |
| port: 32410 | |
| targetPort: 32410 | |
| - name: plex-7 | |
| protocol: UDP | |
| port: 32412 | |
| targetPort: 32412 | |
| - name: plex-8 | |
| protocol: UDP | |
| port: 32413 | |
| targetPort: 32413 | |
| - name: plex-9 | |
| protocol: UDP | |
| port: 32414 | |
| targetPort: 32414 | |
| type: NodePort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment