diff --git a/k8s/applications/videohosting/Chart.yaml b/k8s/applications/videohosting/Chart.yaml new file mode 100644 index 0000000..ebfbd3f --- /dev/null +++ b/k8s/applications/videohosting/Chart.yaml @@ -0,0 +1,6 @@ +apiVersion: v2 +name: videohosting +description: An applications service for homelab +type: application +version: 0.1.0 +dependencies: [] diff --git a/k8s/applications/videohosting/templates/plex.yaml b/k8s/applications/videohosting/templates/plex.yaml new file mode 100644 index 0000000..c3f5c06 --- /dev/null +++ b/k8s/applications/videohosting/templates/plex.yaml @@ -0,0 +1,59 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: plex +spec: + selector: + matchLabels: + app: plex + serviceName: plex + replicas: 2 + template: + metadata: + labels: + app: plex + spec: + containers: + - name: plex + image: lscr.io/linuxserver/plex:1.31.3 + ports: + - containerPort: 32400 + name: plex + - containerPort: 1900 + protocol: udp + - containerPort: 3005 + - containerPort: 5353 + protocol: udp + - containerPort: 8324 + - containerPort: 32410 + protocol: udp + - containerPort: 32412 + protocol: udp + - containerPort: 32413 + protocol: udp + - containerPort: 32414 + protocol: udp + - containerPort: 32469 + volumeMounts: + - name: familyVideos + mountPath: /mnt/familyVideos + - name: torrents + mountPath: /mnt/torrents + env: + - name: PUID + value: 1000 + - name: PGID + value: 1000 + - name: TZ + value: America/Toronto + volumes: + - name: torrents + nfs: + server: "{{.Values.nfs.server}}" + path: "{{ .Values.nfs.shares.torrent }}" + readOnly: true + - name: familyVideos + nfs: + server: "{{.Values.nfs.server}}" + path: "{{ .Values.nfs.shares.familyVideos }}" + readOnly: true diff --git a/k8s/applications/videohosting/values-dev.yaml b/k8s/applications/videohosting/values-dev.yaml new file mode 100644 index 0000000..e69de29 diff --git a/k8s/applications/videohosting/values-prod.yaml b/k8s/applications/videohosting/values-prod.yaml new file mode 100644 index 0000000..a6f08ae --- /dev/null +++ b/k8s/applications/videohosting/values-prod.yaml @@ -0,0 +1,2 @@ +nfs: + server: "192.168.8.107" diff --git a/k8s/applications/videohosting/values.yaml b/k8s/applications/videohosting/values.yaml new file mode 100644 index 0000000..4f9ed2e --- /dev/null +++ b/k8s/applications/videohosting/values.yaml @@ -0,0 +1,5 @@ +nfs: + server: "changeme" + shares: + torrents: "/mnt/EightTerra/DownloadedTorrents" + torrents: "/mnt/EightTerra/FamilyStorage/Video" diff --git a/k8s/argocd/values.yaml b/k8s/argocd/values.yaml index 0c46ef2..7f593ae 100644 --- a/k8s/argocd/values.yaml +++ b/k8s/argocd/values.yaml @@ -27,4 +27,4 @@ global: issuer: "" secretName: "" domain: "" - deployment: "" + deployment: "" \ No newline at end of file