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 7679fc2
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 114 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
3 changes: 1 addition & 2 deletions apps/wallabag/database.yaml → apps/shiori/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: postgresql-cluster
namespace: wallabag
namespace: shiori
spec:
instances: 3
storage:
size: 2Gi
monitoring:
enablePodMonitor: true
enableSuperuserAccess: true
30 changes: 30 additions & 0 deletions apps/shiori/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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
env:
- name: SHIORI_DATABASE_URL
valueFrom:
secretKeyRef:
name: postgresql-cluster-app
key: uri
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
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: wallabag
name: shiori
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
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 7679fc2

Please sign in to comment.