diff options
| author | Paul Buetow <paul@buetow.org> | 2025-08-12 23:16:33 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-08-12 23:16:33 +0300 |
| commit | 206ec679241d46823566382958b335ebdf711317 (patch) | |
| tree | 54c033401776bb26a908ecf10d3244cc2df9ee09 | |
| parent | 32d89017a08fd5f9b098602441b5c7291d7f9692 (diff) | |
add linkding
| -rw-r--r-- | f3s/linkding/Justfile | 12 | ||||
| -rw-r--r-- | f3s/linkding/README.md | 17 | ||||
| -rw-r--r-- | f3s/linkding/helm-chart/Chart.yaml | 5 | ||||
| -rw-r--r-- | f3s/linkding/helm-chart/templates/deployment.yaml | 43 | ||||
| -rw-r--r-- | f3s/linkding/helm-chart/templates/ingress.yaml | 20 | ||||
| -rw-r--r-- | f3s/linkding/helm-chart/templates/persistent-volumes.yaml | 27 |
6 files changed, 124 insertions, 0 deletions
diff --git a/f3s/linkding/Justfile b/f3s/linkding/Justfile new file mode 100644 index 0000000..366cb34 --- /dev/null +++ b/f3s/linkding/Justfile @@ -0,0 +1,12 @@ +NAMESPACE := "services" +RELEASE_NAME := "linkding" +CHART_PATH := "./helm-chart" + +install: + helm install {{RELEASE_NAME}} {{CHART_PATH}} --namespace {{NAMESPACE}} --create-namespace + +upgrade: + helm upgrade {{RELEASE_NAME}} {{CHART_PATH}} --namespace {{NAMESPACE}} + +delete: + helm uninstall {{RELEASE_NAME}} --namespace {{NAMESPACE}}
\ No newline at end of file diff --git a/f3s/linkding/README.md b/f3s/linkding/README.md new file mode 100644 index 0000000..e0e7b1d --- /dev/null +++ b/f3s/linkding/README.md @@ -0,0 +1,17 @@ +# linkding Helm Chart + +This chart deploys linkding. + +## Prerequisites + +Before installing the chart, you must manually create the following directory on your host system to be used by the persistent volume: + +- `/data/nfs/k3svolumes/linkding/data` + +## Installing the Chart + +To install the chart with the release name `linkding`, run the following command: + +```bash +helm install linkding . --namespace services --create-namespace +```
\ No newline at end of file diff --git a/f3s/linkding/helm-chart/Chart.yaml b/f3s/linkding/helm-chart/Chart.yaml new file mode 100644 index 0000000..dc753e8 --- /dev/null +++ b/f3s/linkding/helm-chart/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v2 +name: linkding +description: A Helm chart for deploying linkding. +version: 0.1.0 +appVersion: "latest"
\ No newline at end of file diff --git a/f3s/linkding/helm-chart/templates/deployment.yaml b/f3s/linkding/helm-chart/templates/deployment.yaml new file mode 100644 index 0000000..5c70891 --- /dev/null +++ b/f3s/linkding/helm-chart/templates/deployment.yaml @@ -0,0 +1,43 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: linkding + namespace: services +spec: + replicas: 1 + selector: + matchLabels: + app: linkding + template: + metadata: + labels: + app: linkding + spec: + containers: + - name: linkding + image: sissbruecker/linkding:latest + ports: + - containerPort: 9090 + volumeMounts: + - name: linkding-data + mountPath: /etc/linkding/data + volumes: + - name: linkding-data + persistentVolumeClaim: + claimName: linkding-data-pvc +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: linkding + name: linkding-service + namespace: services +spec: + ports: + - name: web + port: 80 + protocol: TCP + targetPort: 9090 + selector: + app: linkding
\ No newline at end of file diff --git a/f3s/linkding/helm-chart/templates/ingress.yaml b/f3s/linkding/helm-chart/templates/ingress.yaml new file mode 100644 index 0000000..2e9ceec --- /dev/null +++ b/f3s/linkding/helm-chart/templates/ingress.yaml @@ -0,0 +1,20 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: linkding-ingress + namespace: services + annotations: + spec.ingressClassName: traefik + traefik.ingress.kubernetes.io/router.entrypoints: web +spec: + rules: + - host: linkding.f3s.buetow.org + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: linkding-service + port: + number: 80
\ No newline at end of file diff --git a/f3s/linkding/helm-chart/templates/persistent-volumes.yaml b/f3s/linkding/helm-chart/templates/persistent-volumes.yaml new file mode 100644 index 0000000..22da2b0 --- /dev/null +++ b/f3s/linkding/helm-chart/templates/persistent-volumes.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: linkding-data-pv +spec: + capacity: + storage: 1Gi + volumeMode: Filesystem + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Retain + hostPath: + path: /data/nfs/k3svolumes/linkding/data + type: Directory +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: linkding-data-pvc + namespace: services +spec: + storageClassName: "" + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi
\ No newline at end of file |
