summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-07 10:20:05 +0300
committerPaul Buetow <paul@buetow.org>2025-08-07 10:20:05 +0300
commit8b36973989e112b0b9243bf0e693587eb98e95ae (patch)
tree67f4e9809b9e9dba1358e73bc96ec093686788ad
parent0cfe96e7858a6cc9ced2eccd485206959710cf32 (diff)
adding walalbag
-rw-r--r--f3s/wallabag/Makefile5
-rw-r--r--f3s/wallabag/helm-chart/Chart.yaml5
-rw-r--r--f3s/wallabag/helm-chart/README.md18
-rw-r--r--f3s/wallabag/helm-chart/templates/deployment.yaml51
-rw-r--r--f3s/wallabag/helm-chart/templates/ingress.yaml20
-rw-r--r--f3s/wallabag/helm-chart/templates/persistent-volumes.yaml55
6 files changed, 154 insertions, 0 deletions
diff --git a/f3s/wallabag/Makefile b/f3s/wallabag/Makefile
new file mode 100644
index 0000000..1a2dbe6
--- /dev/null
+++ b/f3s/wallabag/Makefile
@@ -0,0 +1,5 @@
+apply:
+ helm install wallabag ./helm-chart --namespace services --create-namespace
+
+delete:
+ helm uninstall wallabag --namespace services
diff --git a/f3s/wallabag/helm-chart/Chart.yaml b/f3s/wallabag/helm-chart/Chart.yaml
new file mode 100644
index 0000000..2fb05ab
--- /dev/null
+++ b/f3s/wallabag/helm-chart/Chart.yaml
@@ -0,0 +1,5 @@
+apiVersion: v2
+name: wallabag
+description: A Helm chart for deploying Wallabag.
+version: 0.1.0
+appVersion: "latest"
diff --git a/f3s/wallabag/helm-chart/README.md b/f3s/wallabag/helm-chart/README.md
new file mode 100644
index 0000000..5db600b
--- /dev/null
+++ b/f3s/wallabag/helm-chart/README.md
@@ -0,0 +1,18 @@
+# Wallabag Helm Chart
+
+This chart deploys Wallabag.
+
+## Prerequisites
+
+Before installing the chart, you must manually create the following directories on your host system to be used by the persistent volumes:
+
+- `/data/nfs/k3svolumes/wallabag/data`
+- `/data/nfs/k3svolumes/wallabag/images`
+
+## Installing the Chart
+
+To install the chart with the release name `my-release`, run the following command:
+
+```bash
+helm install wallabag . --namespace services --create-namespace
+```
diff --git a/f3s/wallabag/helm-chart/templates/deployment.yaml b/f3s/wallabag/helm-chart/templates/deployment.yaml
new file mode 100644
index 0000000..25dcffd
--- /dev/null
+++ b/f3s/wallabag/helm-chart/templates/deployment.yaml
@@ -0,0 +1,51 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: wallabag
+ namespace: services
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: wallabag
+ template:
+ metadata:
+ labels:
+ app: wallabag
+ spec:
+ containers:
+ - name: wallabag
+ image: wallabag/wallabag
+ ports:
+ - containerPort: 80
+ env:
+ - name: SYMFONY__ENV__DOMAIN_NAME
+ value: "https://bag.f3s.buetow.org"
+ volumeMounts:
+ - name: wallabag-data
+ mountPath: /var/www/wallabag/data
+ - name: wallabag-images
+ mountPath: /var/www/wallabag/web/assets/images
+ volumes:
+ - name: wallabag-data
+ persistentVolumeClaim:
+ claimName: wallabag-data-pvc
+ - name: wallabag-images
+ persistentVolumeClaim:
+ claimName: wallabag-images-pvc
+---
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: wallabag
+ name: wallabag-service
+ namespace: services
+spec:
+ ports:
+ - name: web
+ port: 80
+ protocol: TCP
+ targetPort: 80
+ selector:
+ app: wallabag
diff --git a/f3s/wallabag/helm-chart/templates/ingress.yaml b/f3s/wallabag/helm-chart/templates/ingress.yaml
new file mode 100644
index 0000000..deb489a
--- /dev/null
+++ b/f3s/wallabag/helm-chart/templates/ingress.yaml
@@ -0,0 +1,20 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: wallabag-ingress
+ namespace: services
+ annotations:
+ spec.ingressClassName: traefik
+ traefik.ingress.kubernetes.io/router.entrypoints: web
+spec:
+ rules:
+ - host: bag.f3s.buetow.org
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: wallabag-service
+ port:
+ number: 80
diff --git a/f3s/wallabag/helm-chart/templates/persistent-volumes.yaml b/f3s/wallabag/helm-chart/templates/persistent-volumes.yaml
new file mode 100644
index 0000000..6f5346a
--- /dev/null
+++ b/f3s/wallabag/helm-chart/templates/persistent-volumes.yaml
@@ -0,0 +1,55 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: wallabag-data-pv
+spec:
+ capacity:
+ storage: 1Gi
+ volumeMode: Filesystem
+ accessModes:
+ - ReadWriteOnce
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /data/nfs/k3svolumes/wallabag/data
+ type: Directory
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: wallabag-data-pvc
+ namespace: services
+spec:
+ storageClassName: ""
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Gi
+---
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: wallabag-images-pv
+spec:
+ capacity:
+ storage: 1Gi
+ volumeMode: Filesystem
+ accessModes:
+ - ReadWriteOnce
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /data/nfs/k3svolumes/wallabag/images
+ type: Directory
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: wallabag-images-pvc
+ namespace: services
+spec:
+ storageClassName: ""
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Gi