add plex
This commit is contained in:
1 parent
2945150fbd
commit
6b3e9d557e
7 files changed
+115
No files matched your search
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: plex-configmap
|
||||||
|
data:
|
||||||
|
VERSION: docker
|
||||||
|
TZ: Europe/Berlin
|
||||||
|
PGID: "0"
|
||||||
|
PUID: "0"
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: plex-deployment
|
||||||
|
labels:
|
||||||
|
app: plex
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: plex
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: plex
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: plex
|
||||||
|
image: linuxserver/plex:1.43.1
|
||||||
|
ports:
|
||||||
|
- containerPort: 32400
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: plex-claim
|
||||||
|
- configMapRef:
|
||||||
|
name: plex-configmap
|
||||||
|
volumeMounts:
|
||||||
|
- name: plex-volume-config
|
||||||
|
mountPath: /config
|
||||||
|
- name: plex-volume-data
|
||||||
|
mountPath: /data
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: plex-volume-config
|
||||||
|
hostPath:
|
||||||
|
path: /root/kubernetes/plex/data/config
|
||||||
|
- name: plex-volume-data
|
||||||
|
hostPath:
|
||||||
|
path: /root/kubernetes/nextcloud/data/mount/html/data
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: plex-claim
|
||||||
|
spec:
|
||||||
|
refreshPolicy: CreatedOnce
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault-backend
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: plex-claim
|
||||||
|
dataFrom:
|
||||||
|
- extract:
|
||||||
|
key: plex
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: plex-ingress
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: "letsencrypt-issuer"
|
||||||
|
spec:
|
||||||
|
ingressClassName: "traefik"
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- plex.tap-tap.win
|
||||||
|
secretName: plex-tls-secret
|
||||||
|
rules:
|
||||||
|
- host: plex.tap-tap.win
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: plex-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: plex
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- config-map.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- external-secret.yaml
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: plex
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: plex-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: plex
|
||||||
|
ports:
|
||||||
|
- name: plex-http-tcp
|
||||||
|
protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 32400
|
||||||
|
- name: plex-http-udp
|
||||||
|
protocol: UDP
|
||||||
|
port: 80
|
||||||
|
targetPort: 32400
|
||||||
Reference in new issue
Block a user