67
apps/plex/base/deployment.yaml
Normal file
67
apps/plex/base/deployment.yaml
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: plex
|
||||||
|
namespace: plex
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: plex
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: plex
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: plex
|
||||||
|
spec:
|
||||||
|
hostNetwork: true
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
containers:
|
||||||
|
- name: plex
|
||||||
|
image: lscr.io/linuxserver/plex:latest
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
env:
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: TZ
|
||||||
|
value: "Australia/Sydney"
|
||||||
|
- name: VERSION
|
||||||
|
value: docker
|
||||||
|
- name: PLEX_CLAIM
|
||||||
|
value: "0"
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
containerPort: 80
|
||||||
|
name: http
|
||||||
|
volumeMounts:
|
||||||
|
- name: plex-config
|
||||||
|
mountPath: /config
|
||||||
|
- name: plex-tv
|
||||||
|
mountPath: /tv
|
||||||
|
- name: plex-movie
|
||||||
|
mountPath: /movie
|
||||||
|
- name: plex-music
|
||||||
|
mountPath: /music
|
||||||
|
- name: plex-gv
|
||||||
|
mountPath: /gv
|
||||||
|
volumes:
|
||||||
|
- name: plex-config
|
||||||
|
hostPath:
|
||||||
|
path: /mnt/nfs/AppData/plex/config
|
||||||
|
- 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
|
||||||
5
apps/plex/base/kustomization.yaml
Normal file
5
apps/plex/base/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
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
|
||||||
12
apps/plex/env/k3s-cluster/config.json
vendored
Normal file
12
apps/plex/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"appName": "plex",
|
||||||
|
"userGivenName": "plex",
|
||||||
|
"namespace": "plex",
|
||||||
|
"destNamespace": "plex",
|
||||||
|
"destServer": "https://kubernetes.default.svc",
|
||||||
|
"srcPath": "apps/plex/env/k3s-cluster",
|
||||||
|
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||||
|
"srcTargetRevision": "",
|
||||||
|
"labels": null,
|
||||||
|
"annotations": 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
|
||||||
5
apps/plex/env/k3s-cluster/kustomization.yaml
vendored
Normal file
5
apps/plex/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../../base
|
||||||
|
- ./ingress.yaml
|
||||||
@@ -23,6 +23,7 @@ resources:
|
|||||||
- ./new-relic.yaml
|
- ./new-relic.yaml
|
||||||
- ./nextcloud.yaml
|
- ./nextcloud.yaml
|
||||||
- ./nexus.yaml
|
- ./nexus.yaml
|
||||||
|
- ./plex.yaml
|
||||||
- ./postgresql.yaml
|
- ./postgresql.yaml
|
||||||
- ./prometheus.yaml
|
- ./prometheus.yaml
|
||||||
- ./prometheus-operator.yaml
|
- ./prometheus-operator.yaml
|
||||||
|
|||||||
9
resources/namespaces/base/plex.yaml
Normal file
9
resources/namespaces/base/plex.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: Prune=false
|
||||||
|
creationTimestamp: null
|
||||||
|
name: plex
|
||||||
|
spec: {}
|
||||||
|
status: {}
|
||||||
Reference in New Issue
Block a user