add app plex

This commit is contained in:
2024-07-22 00:14:15 +10:00
parent aa6186f214
commit 0486964fc2
6 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
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: plexinc/pms-docker
securityContext:
allowPrivilegeEscalation: false
env:
- name: TZ
value: "Australia/Sydney"
- name: PLEX_CLAIM
value: "0"
ports:
- protocol: TCP
containerPort: 8088
name: http
volumeMounts:
- name: assets
mountPath: /www/assets
volumes:
- name: assets
hostPath:
path: /mnt/nfs/AppData/homer/www/assets
type: Directory

View File

@@ -0,0 +1,3 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources: []

12
apps/plex/env/k3s-cluster/config.json vendored Normal file
View File

@@ -0,0 +1,12 @@
{
"appName": "XXX",
"userGivenName": "XXX",
"namespace": "XXX",
"destNamespace": "XXX",
"destServer": "https://kubernetes.default.svc",
"srcPath": "XXX/XXX/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base

View File

@@ -20,6 +20,7 @@ resources:
- ./mongodb.yaml
- ./new-relic.yaml
- ./nexus.yaml
- ./plex.yaml
- ./postgresql.yaml
- ./prometheus.yaml
- ./prometheus-operator.yaml

View File

@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
creationTimestamp: null
name: plex
spec: {}
status: {}