diff --git a/emby/cert-dubyatp-xyz.yaml b/emby/cert-dubyatp-xyz.yaml new file mode 100644 index 0000000..dc95814 --- /dev/null +++ b/emby/cert-dubyatp-xyz.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Secret +metadata: + name: cert-dubyatp-xyz + annotations: + replicator.v1.mittwald.de/replicate-from: "cert-manager/cert-dubyatp-xyz" + replicator.v1.mittwald.de/replicated-keys: "tls.crt,tls.key" + data: + tls.crt: "" + tls.key: "" \ No newline at end of file diff --git a/emby/deployment.yaml b/emby/deployment.yaml new file mode 100644 index 0000000..88e461b --- /dev/null +++ b/emby/deployment.yaml @@ -0,0 +1,53 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: emby +spec: + selector: + matchLabels: + app: emby + template: + metadata: + labels: + app: emby + spec: + volumes: + - name: tv-shows + nfs: + server: 10.105.15.20 + path: /mnt/hdd-pool/tv-shows + - name: movies + nfs: + server: 10.105.15.20 + path: /mnt/hdd-pool/movies + - name: emby-config + persistentVolumeClaim: + claimName: emby-config + - name: dev-dri + hostPath: + path: /dev/dri + securityContext: + privileged: true + containers: + - name: emby + image: emby/embyserver:4.9.0.41 + volumeMounts: + - name: tv-shows + mountPath: /mnt/tv-shows + - name: movies + mountPath: /mnt/movies + - name: emby-config + mountPath: /config + - name: dev-dri + mountPath: /dev/dri + env: + - name: UID + value: "1000" + - name: GID + value: "1000" + - name: GIDLIST + value: "100" + resources: + limits: + memory: "4096Mi" + cpu: "1000m" diff --git a/emby/ingress.yaml b/emby/ingress.yaml new file mode 100644 index 0000000..2708b4d --- /dev/null +++ b/emby/ingress.yaml @@ -0,0 +1,22 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: emby-ingress + annotations: + traefik.ingress.kubernetes.io/router.middlewares: cloudflarewarp@file +spec: + rules: + - host: emby.dubyatp.xyz + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: emby-http-svc + port: + number: 80 + tls: + - hosts: + - emby.dubyatp.xyz + secretName: cert-dubyatp-xyz \ No newline at end of file diff --git a/emby/pvc.yaml b/emby/pvc.yaml new file mode 100644 index 0000000..35318b4 --- /dev/null +++ b/emby/pvc.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: emby-config +spec: + storageClassName: weyma-shared + resources: + requests: + storage: 10Gi + volumeMode: Filesystem + accessModes: + - ReadWriteOnce \ No newline at end of file diff --git a/emby/svc.yaml b/emby/svc.yaml new file mode 100644 index 0000000..c29bb39 --- /dev/null +++ b/emby/svc.yaml @@ -0,0 +1,23 @@ +apiVersion: v1 +kind: Service +metadata: + name: emby-http-svc +spec: + type: ClusterIP + selector: + app: emby + ports: + - port: 8096 + targetPort: 8096 +--- +apiVersion: v1 +kind: Service +metadata: + name: emby-https-svc +spec: + type: ClusterIP + selector: + app: emby + ports: + - port: 8920 + targetPort: 8920 \ No newline at end of file