Switched to configmap generator for pod restart functionality

This commit is contained in:
JLP 2025-01-30 10:07:22 -05:00
parent ae1a0b7e10
commit bd0db6cc04
No known key found for this signature in database
GPG key ID: 414E00D1FF7519DC
2 changed files with 19 additions and 4 deletions

View file

@ -9,7 +9,7 @@ resources:
- secret.yaml
- httproute-http.yaml
- httproute-https.yaml
- configmap.yaml
# - configmap.yaml
labels:
- includeSelectors: true

View file

@ -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"