feat: overhaul

This commit is contained in:
auricom
2025-01-04 00:00:04 +01:00
parent b14022014b
commit 0c9529c7a2
408 changed files with 3187 additions and 2380 deletions

View File

@@ -4,7 +4,6 @@ apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: linkding
namespace: default
spec:
secretStoreRef:
kind: ClusterSecretStore
@@ -14,22 +13,8 @@ spec:
template:
engineVersion: v2
data:
# App
LD_DB_ENGINE: "postgres"
LD_DB_USER: &dbUser "{{ .POSTGRES_USERNAME }}"
LD_DB_PASSWORD: &dbPass "{{ .POSTGRES_PASSWORD }}"
LD_DB_HOST: &dbHost postgres16-rw.database.svc.cluster.local
LD_DB_DATABASE: &dbName linkding
LD_SUPERUSER_NAME: "{{ .username }}"
LD_SUPERUSER_PASSWORD: "{{ .password }}"
# Postgres Init
INIT_POSTGRES_DBNAME: *dbName
INIT_POSTGRES_HOST: *dbHost
INIT_POSTGRES_USER: *dbUser
INIT_POSTGRES_PASS: *dbPass
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
dataFrom:
- extract:
key: cloudnative-pg
- extract:
key: linkding

View File

@@ -4,7 +4,6 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app linkding
namespace: default
spec:
interval: 30m
chart:
@@ -30,23 +29,16 @@ spec:
values:
controllers:
linkding:
strategy: RollingUpdate
annotations:
reloader.stakater.com/auto: "true"
initContainers:
init-db:
image:
repository: ghcr.io/onedr0p/postgres-init
tag: 16
envFrom: &envFrom
- secretRef:
name: linkding-secret
containers:
app:
image:
repository: sissbruecker/linkding
tag: 1.36.0@sha256:6e2cfd1c32dae78ff6d0fd3000562556f123502d4b79f4e3e53b4b0592022edd
envFrom: *envFrom
envFrom:
- secretRef:
name: linkding-secret
probes:
liveness: &probes
enabled: true
@@ -75,7 +67,7 @@ spec:
ingress:
app:
enabled: true
className: nginx
className: internal
annotations:
hajimari.io/icon: link
gethomepage.dev/enabled: "true"
@@ -97,3 +89,9 @@ spec:
tls:
- hosts:
- *host
persistence:
config:
enabled: true
existingClaim: *app
globalMounts:
- path: /etc/linkding/data

View File

@@ -2,8 +2,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync

View File

@@ -1,5 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
@@ -25,3 +25,4 @@ spec:
substitute:
APP: *app
GATUS_SUBDOMAIN: links
VOLSYNC_CAPACITY: 2Gi