premier tests
This commit is contained in:
parent
8c418c3a3a
commit
f9c3ffa942
77 changed files with 1657 additions and 0 deletions
28
apps/firefly/cronjob.yaml
Normal file
28
apps/firefly/cronjob.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
# Firefly's daily job (recurring transactions, bill reminders, auto-budgets).
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: firefly-cron
|
||||||
|
spec:
|
||||||
|
schedule: "0 3 * * *"
|
||||||
|
timeZone: Europe/Paris
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
backoffLimit: 2
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
restartPolicy: Never
|
||||||
|
containers:
|
||||||
|
- name: cron
|
||||||
|
image: curlimages/curl:8.22.0
|
||||||
|
env:
|
||||||
|
- name: STATIC_CRON_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: firefly-secrets
|
||||||
|
key: STATIC_CRON_TOKEN
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- curl -fsS -m 300 "http://firefly/api/v1/cron/$STATIC_CRON_TOKEN"
|
||||||
61
apps/firefly/deployment.yaml
Normal file
61
apps/firefly/deployment.yaml
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: firefly
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: firefly
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: firefly
|
||||||
|
spec:
|
||||||
|
securityContext:
|
||||||
|
# The image runs as www-data (33).
|
||||||
|
fsGroup: 33
|
||||||
|
containers:
|
||||||
|
- name: firefly
|
||||||
|
image: fireflyiii/core:version-6.7.8
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8080
|
||||||
|
# APP_KEY, DB_PASSWORD, STATIC_CRON_TOKEN.
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: firefly-secrets
|
||||||
|
env:
|
||||||
|
- name: APP_URL
|
||||||
|
value: https://firefly.un-oeil.fr
|
||||||
|
- name: TRUSTED_PROXIES
|
||||||
|
value: "**"
|
||||||
|
- name: TZ
|
||||||
|
value: Europe/Paris
|
||||||
|
- name: DEFAULT_LANGUAGE
|
||||||
|
value: fr_FR
|
||||||
|
- name: DB_CONNECTION
|
||||||
|
value: pgsql
|
||||||
|
- name: DB_HOST
|
||||||
|
value: postgres.postgres.svc
|
||||||
|
- name: DB_PORT
|
||||||
|
value: "5432"
|
||||||
|
- name: DB_DATABASE
|
||||||
|
value: firefly
|
||||||
|
- name: DB_USERNAME
|
||||||
|
value: firefly
|
||||||
|
volumeMounts:
|
||||||
|
- name: upload
|
||||||
|
mountPath: /var/www/html/storage/upload
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 128Mi
|
||||||
|
limits:
|
||||||
|
memory: 512Mi
|
||||||
|
volumes:
|
||||||
|
- name: upload
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: firefly-upload
|
||||||
18
apps/firefly/ingress.yaml
Normal file
18
apps/firefly/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: firefly
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: firefly.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: firefly
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
10
apps/firefly/kustomization.yaml
Normal file
10
apps/firefly/kustomization.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Personal finance, data in the shared Postgres. https://firefly.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- sealed-secret.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- cronjob.yaml
|
||||||
10
apps/firefly/pvc.yaml
Normal file
10
apps/firefly/pvc.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: firefly-upload
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
11
apps/firefly/service.yaml
Normal file
11
apps/firefly/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: firefly
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: firefly
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
47
apps/freshrss/deployment.yaml
Normal file
47
apps/freshrss/deployment.yaml
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: freshrss
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: freshrss
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: freshrss
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: freshrss
|
||||||
|
image: freshrss/freshrss:1.30.1
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: Europe/Paris
|
||||||
|
# Refresh feeds every 20 min (built-in cron).
|
||||||
|
- name: CRON_MIN
|
||||||
|
value: "*/20"
|
||||||
|
- name: TRUSTED_PROXY
|
||||||
|
value: 10.42.0.0/16
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /var/www/FreshRSS/data
|
||||||
|
subPath: data
|
||||||
|
- name: data
|
||||||
|
mountPath: /var/www/FreshRSS/extensions
|
||||||
|
subPath: extensions
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 20m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
memory: 256Mi
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: freshrss-data
|
||||||
18
apps/freshrss/ingress.yaml
Normal file
18
apps/freshrss/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: freshrss
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: rss.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: freshrss
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
8
apps/freshrss/kustomization.yaml
Normal file
8
apps/freshrss/kustomization.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# RSS reader, SQLite. First visit runs the setup wizard. https://rss.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
10
apps/freshrss/pvc.yaml
Normal file
10
apps/freshrss/pvc.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: freshrss-data
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
11
apps/freshrss/service.yaml
Normal file
11
apps/freshrss/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: freshrss
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: freshrss
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
59
apps/hedgedoc/deployment.yaml
Normal file
59
apps/hedgedoc/deployment.yaml
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: hedgedoc
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: hedgedoc
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: hedgedoc
|
||||||
|
spec:
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 10000
|
||||||
|
containers:
|
||||||
|
- name: hedgedoc
|
||||||
|
image: quay.io/hedgedoc/hedgedoc:1.12.0
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 3000
|
||||||
|
# CMD_DB_URL (postgres://hedgedoc:...@postgres.postgres.svc/hedgedoc)
|
||||||
|
# and CMD_SESSION_SECRET.
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: hedgedoc-secrets
|
||||||
|
env:
|
||||||
|
- name: CMD_DOMAIN
|
||||||
|
value: md.un-oeil.fr
|
||||||
|
- name: CMD_PROTOCOL_USESSL
|
||||||
|
value: "true"
|
||||||
|
- name: CMD_URL_ADDPORT
|
||||||
|
value: "false"
|
||||||
|
# Only people with an account can create notes.
|
||||||
|
- name: CMD_ALLOW_ANONYMOUS
|
||||||
|
value: "false"
|
||||||
|
- name: CMD_ALLOW_EMAIL_REGISTER
|
||||||
|
value: "true"
|
||||||
|
volumeMounts:
|
||||||
|
- name: uploads
|
||||||
|
mountPath: /hedgedoc/public/uploads
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /_health
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 128Mi
|
||||||
|
limits:
|
||||||
|
memory: 512Mi
|
||||||
|
volumes:
|
||||||
|
- name: uploads
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: hedgedoc-uploads
|
||||||
18
apps/hedgedoc/ingress.yaml
Normal file
18
apps/hedgedoc/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: hedgedoc
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: md.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: hedgedoc
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
9
apps/hedgedoc/kustomization.yaml
Normal file
9
apps/hedgedoc/kustomization.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Collaborative markdown, data in the shared Postgres. https://md.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- sealed-secret.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
10
apps/hedgedoc/pvc.yaml
Normal file
10
apps/hedgedoc/pvc.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: hedgedoc-uploads
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
11
apps/hedgedoc/service.yaml
Normal file
11
apps/hedgedoc/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: hedgedoc
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: hedgedoc
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
1
apps/homepage/config/bookmarks.yaml
Normal file
1
apps/homepage/config/bookmarks.yaml
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
98
apps/homepage/config/services.yaml
Normal file
98
apps/homepage/config/services.yaml
Normal file
|
|
@ -0,0 +1,98 @@
|
||||||
|
# siteMonitor: Homepage checks each URL itself and shows a green/red dot.
|
||||||
|
# Uptime Kuma (status.un-oeil.fr) remains the source of alerts.
|
||||||
|
- Infra:
|
||||||
|
- Proxmox:
|
||||||
|
href: https://proxmox.un-oeil.fr
|
||||||
|
siteMonitor: https://proxmox.un-oeil.fr
|
||||||
|
icon: proxmox.svg
|
||||||
|
- Uptime Kuma:
|
||||||
|
href: https://status.un-oeil.fr
|
||||||
|
siteMonitor: https://status.un-oeil.fr
|
||||||
|
icon: uptime-kuma.svg
|
||||||
|
- Pelican:
|
||||||
|
href: https://pelican.un-oeil.fr
|
||||||
|
siteMonitor: https://pelican.un-oeil.fr
|
||||||
|
icon: pelican-panel.svg
|
||||||
|
- ntfy:
|
||||||
|
href: https://ntfy.un-oeil.fr
|
||||||
|
siteMonitor: https://ntfy.un-oeil.fr/v1/health
|
||||||
|
icon: ntfy.svg
|
||||||
|
|
||||||
|
- Services:
|
||||||
|
- Nextcloud:
|
||||||
|
href: https://cloud.un-oeil.fr
|
||||||
|
siteMonitor: https://cloud.un-oeil.fr/status.php
|
||||||
|
icon: nextcloud.svg
|
||||||
|
- Vaultwarden:
|
||||||
|
href: https://vault.un-oeil.fr
|
||||||
|
siteMonitor: https://vault.un-oeil.fr/alive
|
||||||
|
icon: vaultwarden.svg
|
||||||
|
- Forgejo:
|
||||||
|
href: https://forgejo.un-oeil.fr
|
||||||
|
siteMonitor: https://forgejo.un-oeil.fr/api/healthz
|
||||||
|
icon: forgejo.svg
|
||||||
|
- Jellyfin:
|
||||||
|
href: https://jellyfin.un-oeil.fr
|
||||||
|
siteMonitor: https://jellyfin.un-oeil.fr/health
|
||||||
|
icon: jellyfin.svg
|
||||||
|
- Overleaf:
|
||||||
|
href: https://latex.un-oeil.fr
|
||||||
|
siteMonitor: https://latex.un-oeil.fr
|
||||||
|
icon: overleaf.svg
|
||||||
|
- Paperless:
|
||||||
|
href: https://paperless.un-oeil.fr
|
||||||
|
siteMonitor: https://paperless.un-oeil.fr
|
||||||
|
icon: paperless-ngx.svg
|
||||||
|
- Wiki.js:
|
||||||
|
href: https://wiki.un-oeil.fr
|
||||||
|
siteMonitor: https://wiki.un-oeil.fr/healthz
|
||||||
|
icon: wikijs.svg
|
||||||
|
- Firefly III:
|
||||||
|
href: https://firefly.un-oeil.fr
|
||||||
|
siteMonitor: https://firefly.un-oeil.fr
|
||||||
|
icon: firefly.svg
|
||||||
|
- Leaderboard:
|
||||||
|
href: https://leaderboard.un-oeil.fr
|
||||||
|
siteMonitor: https://leaderboard.un-oeil.fr
|
||||||
|
|
||||||
|
- Outils:
|
||||||
|
- Etherpad:
|
||||||
|
href: https://pad.un-oeil.fr
|
||||||
|
siteMonitor: https://pad.un-oeil.fr
|
||||||
|
icon: etherpad.svg
|
||||||
|
- HedgeDoc:
|
||||||
|
href: https://md.un-oeil.fr
|
||||||
|
siteMonitor: https://md.un-oeil.fr/_health
|
||||||
|
icon: hedgedoc.svg
|
||||||
|
- Vikunja:
|
||||||
|
href: https://tasks.un-oeil.fr
|
||||||
|
siteMonitor: https://tasks.un-oeil.fr
|
||||||
|
icon: vikunja.svg
|
||||||
|
- FreshRSS:
|
||||||
|
href: https://rss.un-oeil.fr
|
||||||
|
siteMonitor: https://rss.un-oeil.fr
|
||||||
|
icon: freshrss.svg
|
||||||
|
- Linkwarden:
|
||||||
|
href: https://links.un-oeil.fr
|
||||||
|
siteMonitor: https://links.un-oeil.fr
|
||||||
|
icon: linkwarden.svg
|
||||||
|
- SearXNG:
|
||||||
|
href: https://search.un-oeil.fr
|
||||||
|
siteMonitor: https://search.un-oeil.fr/healthz
|
||||||
|
icon: searxng.svg
|
||||||
|
- n8n:
|
||||||
|
href: https://n8n.un-oeil.fr
|
||||||
|
siteMonitor: https://n8n.un-oeil.fr/healthz
|
||||||
|
icon: n8n.svg
|
||||||
|
- PrivateBin:
|
||||||
|
href: https://paste.un-oeil.fr
|
||||||
|
siteMonitor: https://paste.un-oeil.fr
|
||||||
|
icon: privatebin.svg
|
||||||
|
- Stirling-PDF:
|
||||||
|
href: https://pdf.un-oeil.fr
|
||||||
|
siteMonitor: https://pdf.un-oeil.fr
|
||||||
|
icon: stirling-pdf.svg
|
||||||
|
- IT-Tools:
|
||||||
|
href: https://tools.un-oeil.fr
|
||||||
|
siteMonitor: https://tools.un-oeil.fr
|
||||||
|
icon: it-tools.svg
|
||||||
15
apps/homepage/config/settings.yaml
Normal file
15
apps/homepage/config/settings.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
title: un-oeil homelab
|
||||||
|
language: fr
|
||||||
|
theme: dark
|
||||||
|
color: slate
|
||||||
|
headerStyle: clean
|
||||||
|
layout:
|
||||||
|
Infra:
|
||||||
|
style: row
|
||||||
|
columns: 4
|
||||||
|
Services:
|
||||||
|
style: row
|
||||||
|
columns: 4
|
||||||
|
Outils:
|
||||||
|
style: row
|
||||||
|
columns: 4
|
||||||
9
apps/homepage/config/widgets.yaml
Normal file
9
apps/homepage/config/widgets.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
- search:
|
||||||
|
provider: custom
|
||||||
|
url: https://search.un-oeil.fr/search?q=
|
||||||
|
target: _blank
|
||||||
|
- datetime:
|
||||||
|
text_size: md
|
||||||
|
format:
|
||||||
|
dateStyle: long
|
||||||
|
timeStyle: short
|
||||||
53
apps/homepage/deployment.yaml
Normal file
53
apps/homepage/deployment.yaml
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: homepage
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: homepage
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: homepage
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: homepage
|
||||||
|
image: ghcr.io/gethomepage/homepage:v2.5.0
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 3000
|
||||||
|
env:
|
||||||
|
- name: HOMEPAGE_ALLOWED_HOSTS
|
||||||
|
value: home.un-oeil.fr
|
||||||
|
volumeMounts:
|
||||||
|
# Homepage writes to /app/config (logs, missing default files), so
|
||||||
|
# the directory is writable and only our files come from the
|
||||||
|
# ConfigMap.
|
||||||
|
- name: config-dir
|
||||||
|
mountPath: /app/config
|
||||||
|
- name: config
|
||||||
|
mountPath: /app/config/settings.yaml
|
||||||
|
subPath: settings.yaml
|
||||||
|
- name: config
|
||||||
|
mountPath: /app/config/services.yaml
|
||||||
|
subPath: services.yaml
|
||||||
|
- name: config
|
||||||
|
mountPath: /app/config/widgets.yaml
|
||||||
|
subPath: widgets.yaml
|
||||||
|
- name: config
|
||||||
|
mountPath: /app/config/bookmarks.yaml
|
||||||
|
subPath: bookmarks.yaml
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 20m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
memory: 256Mi
|
||||||
|
volumes:
|
||||||
|
- name: config-dir
|
||||||
|
emptyDir: {}
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: homepage-config
|
||||||
18
apps/homepage/ingress.yaml
Normal file
18
apps/homepage/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: homepage
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: home.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: homepage
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
15
apps/homepage/kustomization.yaml
Normal file
15
apps/homepage/kustomization.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Start page with links to every service. https://home.un-oeil.fr
|
||||||
|
# Edit config/*.yaml and push; the pod restarts with the new config.
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
configMapGenerator:
|
||||||
|
- name: homepage-config
|
||||||
|
files:
|
||||||
|
- config/settings.yaml
|
||||||
|
- config/services.yaml
|
||||||
|
- config/widgets.yaml
|
||||||
|
- config/bookmarks.yaml
|
||||||
11
apps/homepage/service.yaml
Normal file
11
apps/homepage/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: homepage
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: homepage
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
26
apps/it-tools/deployment.yaml
Normal file
26
apps/it-tools/deployment.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: it-tools
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: it-tools
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: it-tools
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: it-tools
|
||||||
|
image: corentinth/it-tools:2024.10.22-7ca5933
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 16Mi
|
||||||
|
limits:
|
||||||
|
memory: 64Mi
|
||||||
18
apps/it-tools/ingress.yaml
Normal file
18
apps/it-tools/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: it-tools
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: tools.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: it-tools
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
7
apps/it-tools/kustomization.yaml
Normal file
7
apps/it-tools/kustomization.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Developer utilities, static site, no data. https://tools.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
11
apps/it-tools/service.yaml
Normal file
11
apps/it-tools/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: it-tools
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: it-tools
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
44
apps/linkwarden/deployment.yaml
Normal file
44
apps/linkwarden/deployment.yaml
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: linkwarden
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: linkwarden
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: linkwarden
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: linkwarden
|
||||||
|
image: ghcr.io/linkwarden/linkwarden:v2.16.3
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 3000
|
||||||
|
# DATABASE_URL and NEXTAUTH_SECRET.
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: linkwarden-secrets
|
||||||
|
env:
|
||||||
|
- name: NEXTAUTH_URL
|
||||||
|
value: https://links.un-oeil.fr/api/v1/auth
|
||||||
|
volumeMounts:
|
||||||
|
# Page archives (screenshots, PDFs, readable copies).
|
||||||
|
- name: data
|
||||||
|
mountPath: /data/data
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 512Mi
|
||||||
|
# Archiving runs a headless Chromium.
|
||||||
|
limits:
|
||||||
|
memory: 2Gi
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: linkwarden-data
|
||||||
18
apps/linkwarden/ingress.yaml
Normal file
18
apps/linkwarden/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: linkwarden
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: links.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: linkwarden
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
9
apps/linkwarden/kustomization.yaml
Normal file
9
apps/linkwarden/kustomization.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Bookmarks + page archives, data in the shared Postgres. https://links.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- sealed-secret.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
10
apps/linkwarden/pvc.yaml
Normal file
10
apps/linkwarden/pvc.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: linkwarden-data
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 20Gi
|
||||||
11
apps/linkwarden/service.yaml
Normal file
11
apps/linkwarden/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: linkwarden
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: linkwarden
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
58
apps/n8n/deployment.yaml
Normal file
58
apps/n8n/deployment.yaml
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: n8n
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: n8n
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: n8n
|
||||||
|
spec:
|
||||||
|
securityContext:
|
||||||
|
# The image runs as node (1000).
|
||||||
|
fsGroup: 1000
|
||||||
|
containers:
|
||||||
|
- name: n8n
|
||||||
|
image: n8nio/n8n:2.43.3
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 5678
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: n8n-secrets
|
||||||
|
env:
|
||||||
|
- name: N8N_HOST
|
||||||
|
value: n8n.un-oeil.fr
|
||||||
|
- name: N8N_PROTOCOL
|
||||||
|
value: https
|
||||||
|
- name: WEBHOOK_URL
|
||||||
|
value: https://n8n.un-oeil.fr/
|
||||||
|
- name: N8N_PROXY_HOPS
|
||||||
|
value: "1"
|
||||||
|
- name: GENERIC_TIMEZONE
|
||||||
|
value: Europe/Paris
|
||||||
|
- name: TZ
|
||||||
|
value: Europe/Paris
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /home/node/.n8n
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 256Mi
|
||||||
|
limits:
|
||||||
|
memory: 1Gi
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: n8n-data
|
||||||
18
apps/n8n/ingress.yaml
Normal file
18
apps/n8n/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: n8n
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: n8n.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: n8n
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
9
apps/n8n/kustomization.yaml
Normal file
9
apps/n8n/kustomization.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Workflow automation, SQLite. First visit creates the owner account. https://n8n.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- sealed-secret.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
10
apps/n8n/pvc.yaml
Normal file
10
apps/n8n/pvc.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: n8n-data
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
11
apps/n8n/service.yaml
Normal file
11
apps/n8n/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: n8n
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: n8n
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
17
apps/ntfy/configmap.yaml
Normal file
17
apps/ntfy/configmap.yaml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: ntfy-config
|
||||||
|
data:
|
||||||
|
server.yml: |
|
||||||
|
base-url: https://ntfy.un-oeil.fr
|
||||||
|
behind-proxy: true
|
||||||
|
cache-file: /var/lib/ntfy/cache.db
|
||||||
|
attachment-cache-dir: /var/lib/ntfy/attachments
|
||||||
|
# Nobody can read or publish without an account. Create users with
|
||||||
|
# `ntfy user add` (README).
|
||||||
|
auth-file: /var/lib/ntfy/user.db
|
||||||
|
auth-default-access: deny-all
|
||||||
|
# iOS only gets instant notifications through ntfy.sh's relay (it carries
|
||||||
|
# a poll request, not the message).
|
||||||
|
upstream-base-url: https://ntfy.sh
|
||||||
45
apps/ntfy/deployment.yaml
Normal file
45
apps/ntfy/deployment.yaml
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: ntfy
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: ntfy
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: ntfy
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: ntfy
|
||||||
|
image: binwiederhier/ntfy:v2.29.0
|
||||||
|
args: ["serve"]
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /etc/ntfy
|
||||||
|
- name: data
|
||||||
|
mountPath: /var/lib/ntfy
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /v1/health
|
||||||
|
port: http
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 32Mi
|
||||||
|
limits:
|
||||||
|
memory: 128Mi
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: ntfy-config
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: ntfy-data
|
||||||
18
apps/ntfy/ingress.yaml
Normal file
18
apps/ntfy/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: ntfy
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: ntfy.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: ntfy
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
9
apps/ntfy/kustomization.yaml
Normal file
9
apps/ntfy/kustomization.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Push notifications (Uptime Kuma, CrowdSec, n8n...). https://ntfy.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- configmap.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
10
apps/ntfy/pvc.yaml
Normal file
10
apps/ntfy/pvc.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: ntfy-data
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
11
apps/ntfy/service.yaml
Normal file
11
apps/ntfy/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: ntfy
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: ntfy
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
76
apps/paperless/deployment.yaml
Normal file
76
apps/paperless/deployment.yaml
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: paperless
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: paperless
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: paperless
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: paperless
|
||||||
|
image: ghcr.io/paperless-ngx/paperless-ngx:3.3.0
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8000
|
||||||
|
# PAPERLESS_DBPASS, PAPERLESS_SECRET_KEY, PAPERLESS_ADMIN_PASSWORD.
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: paperless-secrets
|
||||||
|
env:
|
||||||
|
- name: PAPERLESS_URL
|
||||||
|
value: https://paperless.un-oeil.fr
|
||||||
|
- name: PAPERLESS_REDIS
|
||||||
|
value: redis://valkey:6379
|
||||||
|
- name: PAPERLESS_DBHOST
|
||||||
|
value: postgres.postgres.svc
|
||||||
|
- name: PAPERLESS_DBUSER
|
||||||
|
value: paperless
|
||||||
|
- name: PAPERLESS_DBNAME
|
||||||
|
value: paperless
|
||||||
|
# Created on first start only. Change the password in the UI.
|
||||||
|
- name: PAPERLESS_ADMIN_USER
|
||||||
|
value: admin
|
||||||
|
- name: PAPERLESS_OCR_LANGUAGE
|
||||||
|
value: fra+eng
|
||||||
|
- name: PAPERLESS_TIME_ZONE
|
||||||
|
value: Europe/Paris
|
||||||
|
# Longhorn volumes don't send inotify events reliably.
|
||||||
|
- name: PAPERLESS_CONSUMER_POLLING
|
||||||
|
value: "30"
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /usr/src/paperless/data
|
||||||
|
- name: media
|
||||||
|
mountPath: /usr/src/paperless/media
|
||||||
|
- name: consume
|
||||||
|
mountPath: /usr/src/paperless/consume
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 512Mi
|
||||||
|
# OCR is the memory-hungry part.
|
||||||
|
limits:
|
||||||
|
memory: 2Gi
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: paperless-data
|
||||||
|
- name: media
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: paperless-media
|
||||||
|
- name: consume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: paperless-consume
|
||||||
18
apps/paperless/ingress.yaml
Normal file
18
apps/paperless/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: paperless
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: paperless.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: paperless
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
10
apps/paperless/kustomization.yaml
Normal file
10
apps/paperless/kustomization.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Document OCR + archive, metadata in the shared Postgres. https://paperless.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- sealed-secret.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- valkey.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
32
apps/paperless/pvc.yaml
Normal file
32
apps/paperless/pvc.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: paperless-data
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: paperless-media
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 50Gi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: paperless-consume
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
11
apps/paperless/service.yaml
Normal file
11
apps/paperless/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: paperless
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: paperless
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
39
apps/paperless/valkey.yaml
Normal file
39
apps/paperless/valkey.yaml
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# Task queue for Paperless. Nothing in it needs to survive a restart.
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: valkey
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: valkey
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: valkey
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: valkey
|
||||||
|
image: valkey/valkey:8.1.10-alpine
|
||||||
|
ports:
|
||||||
|
- name: redis
|
||||||
|
containerPort: 6379
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 32Mi
|
||||||
|
limits:
|
||||||
|
memory: 128Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: valkey
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: valkey
|
||||||
|
ports:
|
||||||
|
- name: redis
|
||||||
|
port: 6379
|
||||||
|
targetPort: redis
|
||||||
38
apps/postgres/backup-cronjob.yaml
Normal file
38
apps/postgres/backup-cronjob.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# Nightly pg_dumpall streamed into restic on LXC 105, then a ping to the
|
||||||
|
# "Backup – Postgres (k3s)" Push monitor in Uptime Kuma.
|
||||||
|
# Suspended until postgres-backup-secrets exists (README, "Postgres backups").
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: postgres-backup
|
||||||
|
spec:
|
||||||
|
suspend: true
|
||||||
|
schedule: "45 2 * * *"
|
||||||
|
timeZone: Europe/Paris
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
backoffLimit: 1
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
restartPolicy: Never
|
||||||
|
containers:
|
||||||
|
- name: backup
|
||||||
|
image: postgres:17.11-alpine
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: postgres-secrets
|
||||||
|
- secretRef:
|
||||||
|
name: postgres-backup-secrets
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -ec
|
||||||
|
- |
|
||||||
|
set -o pipefail
|
||||||
|
apk add --no-cache restic curl >/dev/null
|
||||||
|
restic cat config >/dev/null 2>&1 || restic init
|
||||||
|
export PGPASSWORD="$POSTGRES_PASSWORD"
|
||||||
|
pg_dumpall -h postgres -U postgres \
|
||||||
|
| restic backup --stdin --stdin-filename pg_dumpall.sql --host k3s-postgres
|
||||||
|
restic forget --host k3s-postgres --keep-daily 7 --keep-weekly 4 --keep-monthly 3 --prune
|
||||||
|
curl -fsS -m 10 -o /dev/null "$KUMA_PUSH_URL"
|
||||||
14
apps/postgres/init/10-app-databases.sh
Normal file
14
apps/postgres/init/10-app-databases.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Runs once, on the first start with an empty data directory. One role and one
|
||||||
|
# database per app; passwords come from postgres-secrets.
|
||||||
|
# Adding an app later: run the same CREATE ROLE / CREATE DATABASE by hand
|
||||||
|
# (kubectl -n postgres exec -it postgres-0 -- psql -U postgres).
|
||||||
|
set -e
|
||||||
|
for app in wikijs paperless linkwarden firefly hedgedoc; do
|
||||||
|
var=$(echo "$app" | tr a-z A-Z)_DB_PASSWORD
|
||||||
|
eval pass=\$$var
|
||||||
|
psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" <<SQL
|
||||||
|
CREATE ROLE $app LOGIN PASSWORD '$pass';
|
||||||
|
CREATE DATABASE $app OWNER $app;
|
||||||
|
SQL
|
||||||
|
done
|
||||||
13
apps/postgres/kustomization.yaml
Normal file
13
apps/postgres/kustomization.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Shared Postgres for the apps that need one (wikijs, paperless, linkwarden,
|
||||||
|
# firefly, hedgedoc). Reached as postgres.postgres.svc:5432.
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- sealed-secret.yaml
|
||||||
|
- statefulset.yaml
|
||||||
|
- service.yaml
|
||||||
|
- backup-cronjob.yaml
|
||||||
|
configMapGenerator:
|
||||||
|
- name: postgres-init
|
||||||
|
files:
|
||||||
|
- init/10-app-databases.sh
|
||||||
11
apps/postgres/service.yaml
Normal file
11
apps/postgres/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: postgres
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: postgres
|
||||||
|
ports:
|
||||||
|
- name: postgres
|
||||||
|
port: 5432
|
||||||
|
targetPort: postgres
|
||||||
56
apps/postgres/statefulset.yaml
Normal file
56
apps/postgres/statefulset.yaml
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: postgres
|
||||||
|
spec:
|
||||||
|
serviceName: postgres
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: postgres
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: postgres
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: postgres
|
||||||
|
image: postgres:17.11-alpine
|
||||||
|
ports:
|
||||||
|
- name: postgres
|
||||||
|
containerPort: 5432
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: postgres-secrets
|
||||||
|
env:
|
||||||
|
# Subdirectory: the volume's root holds ext4's lost+found.
|
||||||
|
- name: PGDATA
|
||||||
|
value: /var/lib/postgresql/data/pgdata
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /var/lib/postgresql/data
|
||||||
|
- name: init
|
||||||
|
mountPath: /docker-entrypoint-initdb.d
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command: ["pg_isready", "-U", "postgres"]
|
||||||
|
periodSeconds: 10
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
limits:
|
||||||
|
memory: 1Gi
|
||||||
|
volumes:
|
||||||
|
- name: init
|
||||||
|
configMap:
|
||||||
|
name: postgres-init
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- metadata:
|
||||||
|
name: data
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
38
apps/privatebin/deployment.yaml
Normal file
38
apps/privatebin/deployment.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: privatebin
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: privatebin
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: privatebin
|
||||||
|
spec:
|
||||||
|
securityContext:
|
||||||
|
# The image runs as nobody:www-data (65534:82).
|
||||||
|
fsGroup: 82
|
||||||
|
containers:
|
||||||
|
- name: privatebin
|
||||||
|
image: privatebin/nginx-fpm-alpine:2.0.6
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8080
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /srv/data
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 32Mi
|
||||||
|
limits:
|
||||||
|
memory: 128Mi
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: privatebin-data
|
||||||
18
apps/privatebin/ingress.yaml
Normal file
18
apps/privatebin/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: privatebin
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: paste.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: privatebin
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
8
apps/privatebin/kustomization.yaml
Normal file
8
apps/privatebin/kustomization.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Encrypted pastebin. https://paste.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
10
apps/privatebin/pvc.yaml
Normal file
10
apps/privatebin/pvc.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: privatebin-data
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
11
apps/privatebin/service.yaml
Normal file
11
apps/privatebin/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: privatebin
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: privatebin
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
36
apps/searxng/deployment.yaml
Normal file
36
apps/searxng/deployment.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: searxng
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: searxng
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: searxng
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: searxng
|
||||||
|
image: searxng/searxng:2026.10.4-d48c4b555
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8080
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: searxng-secrets
|
||||||
|
env:
|
||||||
|
- name: SEARXNG_BASE_URL
|
||||||
|
value: https://search.un-oeil.fr/
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 128Mi
|
||||||
|
limits:
|
||||||
|
memory: 512Mi
|
||||||
18
apps/searxng/ingress.yaml
Normal file
18
apps/searxng/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: searxng
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: search.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: searxng
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
8
apps/searxng/kustomization.yaml
Normal file
8
apps/searxng/kustomization.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Private metasearch, stateless. https://search.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- sealed-secret.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
11
apps/searxng/service.yaml
Normal file
11
apps/searxng/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: searxng
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: searxng
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
34
apps/stirling-pdf/deployment.yaml
Normal file
34
apps/stirling-pdf/deployment.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: stirling-pdf
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: stirling-pdf
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: stirling-pdf
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: stirling-pdf
|
||||||
|
image: stirlingtools/stirling-pdf:3.1.0
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8080
|
||||||
|
env:
|
||||||
|
- name: SYSTEM_DEFAULTLOCALE
|
||||||
|
value: fr-FR
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 512Mi
|
||||||
|
limits:
|
||||||
|
memory: 2Gi
|
||||||
18
apps/stirling-pdf/ingress.yaml
Normal file
18
apps/stirling-pdf/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: stirling-pdf
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: pdf.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: stirling-pdf
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
7
apps/stirling-pdf/kustomization.yaml
Normal file
7
apps/stirling-pdf/kustomization.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# PDF toolkit. Files are processed in memory, nothing is kept. https://pdf.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
11
apps/stirling-pdf/service.yaml
Normal file
11
apps/stirling-pdf/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: stirling-pdf
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: stirling-pdf
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
52
apps/vikunja/deployment.yaml
Normal file
52
apps/vikunja/deployment.yaml
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: vikunja
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: vikunja
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: vikunja
|
||||||
|
spec:
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 1000
|
||||||
|
containers:
|
||||||
|
- name: vikunja
|
||||||
|
image: vikunja/vikunja:2.7.0
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 3456
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: vikunja-secrets
|
||||||
|
env:
|
||||||
|
- name: VIKUNJA_SERVICE_PUBLICURL
|
||||||
|
value: https://tasks.un-oeil.fr/
|
||||||
|
- name: VIKUNJA_SERVICE_TIMEZONE
|
||||||
|
value: Europe/Paris
|
||||||
|
# Turn off once your account exists (README).
|
||||||
|
- name: VIKUNJA_SERVICE_ENABLEREGISTRATION
|
||||||
|
value: "true"
|
||||||
|
- name: VIKUNJA_DATABASE_TYPE
|
||||||
|
value: sqlite
|
||||||
|
- name: VIKUNJA_DATABASE_PATH
|
||||||
|
value: /app/vikunja/files/vikunja.db
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /app/vikunja/files
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 20m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
memory: 256Mi
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: vikunja-data
|
||||||
18
apps/vikunja/ingress.yaml
Normal file
18
apps/vikunja/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: vikunja
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: tasks.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: vikunja
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
9
apps/vikunja/kustomization.yaml
Normal file
9
apps/vikunja/kustomization.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Tasks / projects, SQLite. https://tasks.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- sealed-secret.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
10
apps/vikunja/pvc.yaml
Normal file
10
apps/vikunja/pvc.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: vikunja-data
|
||||||
|
spec:
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
11
apps/vikunja/service.yaml
Normal file
11
apps/vikunja/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: vikunja
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: vikunja
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
45
apps/wikijs/deployment.yaml
Normal file
45
apps/wikijs/deployment.yaml
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: wikijs
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: wikijs
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: wikijs
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: wikijs
|
||||||
|
image: ghcr.io/requarks/wiki:2.5.314
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 3000
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: wikijs-secrets
|
||||||
|
env:
|
||||||
|
- name: DB_TYPE
|
||||||
|
value: postgres
|
||||||
|
- name: DB_HOST
|
||||||
|
value: postgres.postgres.svc
|
||||||
|
- name: DB_PORT
|
||||||
|
value: "5432"
|
||||||
|
- name: DB_USER
|
||||||
|
value: wikijs
|
||||||
|
- name: DB_NAME
|
||||||
|
value: wikijs
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 20
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 256Mi
|
||||||
|
limits:
|
||||||
|
memory: 768Mi
|
||||||
18
apps/wikijs/ingress.yaml
Normal file
18
apps/wikijs/ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Reached through Caddy (LXC 100) -> Traefik on 10.0.0.141-143:80.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: wikijs
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: wiki.un-oeil.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: wikijs
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
8
apps/wikijs/kustomization.yaml
Normal file
8
apps/wikijs/kustomization.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Wiki, data in the shared Postgres. First visit runs the setup wizard. https://wiki.un-oeil.fr
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- sealed-secret.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
11
apps/wikijs/service.yaml
Normal file
11
apps/wikijs/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: wikijs
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: wikijs
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
Loading…
Add table
Reference in a new issue