Skip to content

Commit

Permalink
feat(apps): deploy wallabag
Browse files Browse the repository at this point in the history
  • Loading branch information
luissimas committed Sep 8, 2024
1 parent b550241 commit 07b2b06
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ resources:
- octobot
- zettelkasten-exporter
- traggo
- wallabag
11 changes: 11 additions & 0 deletions apps/wallabag/database.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: postgresql-cluster
namespace: wallabag
spec:
instances: 3
storage:
size: 2Gi
monitoring:
enablePodMonitor: true
57 changes: 57 additions & 0 deletions apps/wallabag/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: wallabag
namespace: wallabag
labels:
app.kubernetes.io/name: wallabag
spec:
selector:
matchLabels:
app.kubernetes.io/name: wallabag
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: wallabag
spec:
containers:
- name: wallabag
image: "wallabag/wallabag"
ports:
- name: http
containerPort: 80
protocol: TCP
env:
- name: SYMFONY__ENV__DATABASE_DRIVER
value: pdo_pgsql
- name: SYMFONY__ENV__DATABASE_DRIVER_CLASS
value: Wallabag\CoreBundle\Doctrine\DBAL\Driver\CustomPostgreSQLDriver
- name: SYMFONY__ENV__DOMAIN_NAME
value: https://wallabag.totorinho.duckdns.org
- name: SYMFONY__ENV__DATABASE_HOST
valueFrom:
secretKeyRef:
name: postgresql-cluster-app
key: host
- name: SYMFONY__ENV__DATABASE_PORT
valueFrom:
secretKeyRef:
name: postgresql-cluster-app
key: port
- name: SYMFONY__ENV__DATABASE_NAME
valueFrom:
secretKeyRef:
name: postgresql-cluster-app
key: dbname
- name: SYMFONY__ENV__DATABASE_USER
valueFrom:
secretKeyRef:
name: postgresql-cluster-app
key: username
- name: SYMFONY__ENV__DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: postgresql-cluster-app
key: password

30 changes: 30 additions & 0 deletions apps/wallabag/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: wallabag
namespace: wallabag
labels:
app.kubernetes.io/name: wallabag
annotations:
gethomepage.dev/name: wallabag
gethomepage.dev/description: Read later
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Media
gethomepage.dev/icon: wallabag.png
gethomepage.dev/pod-selector: "app.kubernetes.io/name=wallabag"
spec:
tls:
- hosts:
- wallabag.totorinho.duckdns.org
secretName: duckdns-wildcard-cert-totorinho.duckdns.org
rules:
- host: wallabag.totorinho.duckdns.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: wallabag
port:
number: 80
8 changes: 8 additions & 0 deletions apps/wallabag/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- database.yaml
- deployment.yaml
- service.yaml
- ingress.yaml
4 changes: 4 additions & 0 deletions apps/wallabag/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: wallabag
13 changes: 13 additions & 0 deletions apps/wallabag/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: wallabag
namespace: wallabag
labels:
app.kubernetes.io/name: wallabag
spec:
selector:
app.kubernetes.io/name: wallabag
ports:
- port: 80
targetPort: 80

0 comments on commit 07b2b06

Please sign in to comment.