Skip to content

Commit

Permalink
feat(apps): deploy shiori in place of wallabag
Browse files Browse the repository at this point in the history
Unfortunately I could not get wallabag to work properly. A lot of issues
with migrations and generally a very bad experience operating the
application.
  • Loading branch information
luissimas committed Sep 8, 2024
1 parent 41af9a9 commit 9fa9d1c
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 125 deletions.
2 changes: 1 addition & 1 deletion apps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ resources:
- octobot
- zettelkasten-exporter
- traggo
- wallabag
- shiori
34 changes: 34 additions & 0 deletions apps/shiori/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: shiori
namespace: shiori
labels:
app.kubernetes.io/name: shiori
spec:
selector:
matchLabels:
app.kubernetes.io/name: shiori
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: shiori
spec:
containers:
- name: shiori
image: "ghcr.io/go-shiori/shiori:latest"
ports:
- name: http
containerPort: 80
protocol: TCP
volumeMounts:
- mountPath: /app/data
name: data
env:
- name: SHIORI_DIR
value: /app/data
volumes:
- name: data
persistentVolumeClaim:
claimName: shiori-data
30 changes: 30 additions & 0 deletions apps/shiori/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: shiori
namespace: shiori
labels:
app.kubernetes.io/name: shiori
annotations:
gethomepage.dev/name: shiori
gethomepage.dev/description: Bookmarks manager
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Media
gethomepage.dev/icon: shiori.png
gethomepage.dev/pod-selector: "app.kubernetes.io/name=shiori"
spec:
tls:
- hosts:
- shiori.totorinho.duckdns.org
secretName: duckdns-wildcard-cert-totorinho.duckdns.org
rules:
- host: shiori.totorinho.duckdns.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: shiori
port:
number: 8080
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- database.yaml
- pvc.yaml
- deployment.yaml
- service.yaml
- ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: wallabag
name: shiori
15 changes: 15 additions & 0 deletions apps/shiori/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: shiori-data
namespace: shiori
labels:
app.kubernetes.io/name: shiori
spec:
storageClassName: local-path
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi

13 changes: 13 additions & 0 deletions apps/shiori/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: shiori
namespace: shiori
labels:
app.kubernetes.io/name: shiori
spec:
selector:
app.kubernetes.io/name: shiori
ports:
- port: 8080
targetPort: 8080
12 changes: 0 additions & 12 deletions apps/wallabag/database.yaml

This file was deleted.

67 changes: 0 additions & 67 deletions apps/wallabag/deployment.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions apps/wallabag/ingress.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions apps/wallabag/service.yaml

This file was deleted.

0 comments on commit 9fa9d1c

Please sign in to comment.