summaryrefslogtreecommitdiff
path: root/f3s/minvid/helm-chart
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-31 17:04:00 +0200
committerPaul Buetow <paul@buetow.org>2026-01-31 17:04:00 +0200
commit32a57d822cfe4315f5ad16186caa25337d6ef7b0 (patch)
treeda8e93c8853e2f00590abaff308b8b787b5c568d /f3s/minvid/helm-chart
parent2486a5e3965d25344e34c9ef98300f893fcdeb39 (diff)
Add MinVid deployment
Amp-Thread-ID: https://ampcode.com/threads/T-019c1492-bec0-70f8-8d02-ef3596a7228b Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'f3s/minvid/helm-chart')
-rw-r--r--f3s/minvid/helm-chart/Chart.yaml5
-rw-r--r--f3s/minvid/helm-chart/templates/deployment.yaml43
-rw-r--r--f3s/minvid/helm-chart/templates/ingress.yaml20
-rw-r--r--f3s/minvid/helm-chart/templates/persistent-volumes.yaml27
4 files changed, 95 insertions, 0 deletions
diff --git a/f3s/minvid/helm-chart/Chart.yaml b/f3s/minvid/helm-chart/Chart.yaml
new file mode 100644
index 0000000..994b2f4
--- /dev/null
+++ b/f3s/minvid/helm-chart/Chart.yaml
@@ -0,0 +1,5 @@
+apiVersion: v2
+name: minvid
+description: A Helm chart for deploying MinVid.
+version: 0.1.0
+appVersion: "latest"
diff --git a/f3s/minvid/helm-chart/templates/deployment.yaml b/f3s/minvid/helm-chart/templates/deployment.yaml
new file mode 100644
index 0000000..9cbdf29
--- /dev/null
+++ b/f3s/minvid/helm-chart/templates/deployment.yaml
@@ -0,0 +1,43 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: minvid
+ namespace: services
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: minvid
+ template:
+ metadata:
+ labels:
+ app: minvid
+ spec:
+ containers:
+ - name: minvid
+ image: ghcr.io/mariodian/minvid
+ ports:
+ - containerPort: 3000
+ volumeMounts:
+ - name: minvid-data
+ mountPath: /data
+ volumes:
+ - name: minvid-data
+ persistentVolumeClaim:
+ claimName: minvid-data-pvc
+---
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: minvid
+ name: minvid-service
+ namespace: services
+spec:
+ ports:
+ - name: web
+ port: 3000
+ protocol: TCP
+ targetPort: 3000
+ selector:
+ app: minvid
diff --git a/f3s/minvid/helm-chart/templates/ingress.yaml b/f3s/minvid/helm-chart/templates/ingress.yaml
new file mode 100644
index 0000000..024d515
--- /dev/null
+++ b/f3s/minvid/helm-chart/templates/ingress.yaml
@@ -0,0 +1,20 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: minvid-ingress
+ namespace: services
+ annotations:
+ spec.ingressClassName: traefik
+ traefik.ingress.kubernetes.io/router.entrypoints: web
+spec:
+ rules:
+ - host: minvid.f3s.buetow.org
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: minvid-service
+ port:
+ number: 3000
diff --git a/f3s/minvid/helm-chart/templates/persistent-volumes.yaml b/f3s/minvid/helm-chart/templates/persistent-volumes.yaml
new file mode 100644
index 0000000..a6b40a0
--- /dev/null
+++ b/f3s/minvid/helm-chart/templates/persistent-volumes.yaml
@@ -0,0 +1,27 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: minvid-data-pv
+spec:
+ capacity:
+ storage: 1Ti
+ volumeMode: Filesystem
+ accessModes:
+ - ReadWriteOnce
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /data/nfs/k3svolumes/minvid/data
+ type: Directory
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: minvid-data-pvc
+ namespace: services
+spec:
+ storageClassName: ""
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Ti