From bd0db6cc04f44690d52b8990e62af5e985b7e207 Mon Sep 17 00:00:00 2001 From: Jonathan Leech-Pepin Date: Thu, 30 Jan 2025 10:07:22 -0500 Subject: [PATCH] Switched to configmap generator for pod restart functionality --- kustomize/deployment/kustomization.yaml | 2 +- namespaces/apps/linkwarden/kustomization.yaml | 21 ++++++++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/kustomize/deployment/kustomization.yaml b/kustomize/deployment/kustomization.yaml index 69b86ad..133e22f 100644 --- a/kustomize/deployment/kustomization.yaml +++ b/kustomize/deployment/kustomization.yaml @@ -9,7 +9,7 @@ resources: - secret.yaml - httproute-http.yaml - httproute-https.yaml - - configmap.yaml + # - configmap.yaml labels: - includeSelectors: true diff --git a/namespaces/apps/linkwarden/kustomization.yaml b/namespaces/apps/linkwarden/kustomization.yaml index 98f047c..a4b53c0 100644 --- a/namespaces/apps/linkwarden/kustomization.yaml +++ b/namespaces/apps/linkwarden/kustomization.yaml @@ -69,9 +69,9 @@ patches: - path: patches/deployment.yaml target: kind: Deployment - - path: patches/configmap.yaml - target: - kind: ConfigMap + # - path: patches/configmap.yaml + # target: + # kind: ConfigMap - path: patches/pvc.yaml target: kind: PersistentVolumeClaim @@ -82,3 +82,18 @@ labels: app.kubernetes.io/appName: linkwarden - pairs: app.kubernetes.io/appNamespace: apps + +configMapGenerator: + - name: config + literals: + - NEXTAUTH_URL="http://linkwarden.leechpepin.com/api/v1/auth" + - NEXT_PUBLIC_OLLAMA_ENDPOINT_URL="http://ollama.ai.svc.cluster.local:11434" + - OLLAMA_MODEL="phi3:mini-4k" + - NEXT_PUBLIC_AUTHENTIK_ENABLED="true" + - AUTHENTIK_CUSTOM_NAME="Authentik" + - AUTHENTIK_ISSUER="https://auth.leechpepin.com/application/o/linkwarden" + - AUTHENTIK_CLIENT_ID="VQtaPxELuwFFUS412pZsk0TFIFpXqPpZYHul9Ddj" + - NEXT_PUBLIC_DISABLE_REGISTRATION="true" + - NEXT_PUBLIC_CREDENTIALS_ENABLED="false" + - NEXT_PUBLIC_EMAIL_PROVIDER="true" + - EMAIL_FROM="homelab@leechpepin.com"