add app plex
This commit is contained in:
@@ -20,23 +20,48 @@ spec:
|
|||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
containers:
|
containers:
|
||||||
- name: plex
|
- name: plex
|
||||||
image: plexinc/pms-docker
|
image: lscr.io/linuxserver/plex:latest
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
env:
|
env:
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Australia/Sydney"
|
value: "Australia/Sydney"
|
||||||
|
- name: VERSION
|
||||||
|
value: docker
|
||||||
- name: PLEX_CLAIM
|
- name: PLEX_CLAIM
|
||||||
value: "0"
|
value: "0"
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
containerPort: 8088
|
containerPort: 80
|
||||||
name: http
|
name: http
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: plex-config
|
||||||
mountPath: /www/assets
|
mountPath: /config
|
||||||
|
- name: plex-tv
|
||||||
|
mountPath: /tv
|
||||||
|
- name: plex-movie
|
||||||
|
mountPath: /movie
|
||||||
|
- name: plex-music
|
||||||
|
mountPath: /music
|
||||||
|
- name: plex-gv
|
||||||
|
mountPath: /gv
|
||||||
volumes:
|
volumes:
|
||||||
- name: assets
|
- name: plex-config
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /mnt/nfs/AppData/homer/www/assets
|
path: /mnt/nfs/AppData/plex/config
|
||||||
type: Directory
|
- name: plex-tv
|
||||||
|
hostPath:
|
||||||
|
path: /mnt/nfs/AppData/plex/tv
|
||||||
|
- name: plex-movie
|
||||||
|
hostPath:
|
||||||
|
path: /mnt/nfs/AppData/plex/movie
|
||||||
|
- name: plex-music
|
||||||
|
hostPath:
|
||||||
|
path: /mnt/nfs/AppData/plex/music
|
||||||
|
- name: plex-gv
|
||||||
|
hostPath:
|
||||||
|
path: /mnt/nfs/AppData/plex/gv
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources: []
|
resources:
|
||||||
|
- ./deployment.yaml
|
||||||
|
- ./service.yaml
|
||||||
17
apps/plex/base/service.yaml
Normal file
17
apps/plex/base/service.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: plex
|
||||||
|
namespace: plex
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: plex
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: plex
|
||||||
|
type: ClusterIP
|
||||||
|
internalTrafficPolicy: Cluster
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 8899
|
||||||
|
targetPort: 80
|
||||||
|
name: http
|
||||||
10
apps/plex/env/k3s-cluster/config.json
vendored
10
apps/plex/env/k3s-cluster/config.json
vendored
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"appName": "XXX",
|
"appName": "plex",
|
||||||
"userGivenName": "XXX",
|
"userGivenName": "plex",
|
||||||
"namespace": "XXX",
|
"namespace": "plex",
|
||||||
"destNamespace": "XXX",
|
"destNamespace": "plex",
|
||||||
"destServer": "https://kubernetes.default.svc",
|
"destServer": "https://kubernetes.default.svc",
|
||||||
"srcPath": "XXX/XXX/env/k3s-cluster",
|
"srcPath": "apps/plex/env/k3s-cluster",
|
||||||
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||||
"srcTargetRevision": "",
|
"srcTargetRevision": "",
|
||||||
"labels": null,
|
"labels": null,
|
||||||
|
|||||||
21
apps/plex/env/k3s-cluster/ingress.yaml
vendored
Normal file
21
apps/plex/env/k3s-cluster/ingress.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: plex-ingress
|
||||||
|
namespace: plex
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||||
|
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: "plex.cluster.edward.sydney"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: plex
|
||||||
|
port:
|
||||||
|
number: 8899
|
||||||
1
apps/plex/env/k3s-cluster/kustomization.yaml
vendored
1
apps/plex/env/k3s-cluster/kustomization.yaml
vendored
@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ../../base
|
- ../../base
|
||||||
|
- ./ingress.yaml
|
||||||
Reference in New Issue
Block a user