Fix authelia deploy issue

This commit is contained in:
Seth Call 2026-02-16 15:52:19 -06:00
parent 21bf25996a
commit 4b0ed4d3e0
3 changed files with 44 additions and 2 deletions

View File

@ -40,8 +40,7 @@ data:
notifier: notifier:
smtp: smtp:
host: {{ .Values.config.notifier.smtp.host | quote }} address: "submission://{{ .Values.config.notifier.smtp.host }}:{{ .Values.config.notifier.smtp.port }}"
port: {{ .Values.config.notifier.smtp.port }}
sender: {{ .Values.config.notifier.smtp.sender | quote }} sender: {{ .Values.config.notifier.smtp.sender | quote }}
username: {{ .Values.config.notifier.smtp.username | quote }} username: {{ .Values.config.notifier.smtp.username | quote }}
password: "$SMTP_PASSWORD" # Injected via env/file password: "$SMTP_PASSWORD" # Injected via env/file

View File

@ -20,6 +20,12 @@ spec:
- name: http - name: http
containerPort: 9091 containerPort: 9091
env: env:
- name: AUTHELIA_SERVER_ADDRESS
value: "tcp://0.0.0.0:9091"
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: JWT_SECRET - name: JWT_SECRET
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:

37
scripts/fast-deploy-console Executable file
View File

@ -0,0 +1,37 @@
#!/bin/bash
set -e
# scripts/fast-deploy-infra.sh
# Quickly updates Console, Authelia, and Ingress-Nginx bypassing CI/CD.
ENV=${1:-staging}
CONTEXT="lke-video-$ENV" # Adjust this if your context names differ
echo "🚀 Fast-deploying infra components to $ENV..."
# 1. Update Authelia
echo "📦 Updating Authelia..."
helm upgrade --install authelia k8s/authelia
--namespace authelia
--create-namespace
-f k8s/authelia/values.yaml
-f k8s/authelia/values-$ENV.yaml
# 2. Update Console (The Wiki)
echo "📦 Updating Console..."
helm upgrade --install console k8s/console
--namespace console
--create-namespace
-f k8s/console/values-$ENV.yaml
# 3. Optional: Update Ingress-Nginx (usually static, but good to have)
if [[ "$2" == "--with-ingress" ]]; then
echo "📦 Updating Ingress-Nginx..."
# Note: This uses the official repo but local values pattern if we had one
# For now, we'll just trigger a restart to pick up any config changes if needed
kubectl rollout restart deployment/ingress-nginx-controller -n ingress-nginx
fi
echo "✅ Deployment complete. Checking status..."
kubectl get pods -n authelia
kubectl get pods -n console