diff --git a/k8s/authelia/templates/configmap.yaml b/k8s/authelia/templates/configmap.yaml index e44531f..8c0090b 100644 --- a/k8s/authelia/templates/configmap.yaml +++ b/k8s/authelia/templates/configmap.yaml @@ -40,8 +40,7 @@ data: notifier: smtp: - host: {{ .Values.config.notifier.smtp.host | quote }} - port: {{ .Values.config.notifier.smtp.port }} + address: "submission://{{ .Values.config.notifier.smtp.host }}:{{ .Values.config.notifier.smtp.port }}" sender: {{ .Values.config.notifier.smtp.sender | quote }} username: {{ .Values.config.notifier.smtp.username | quote }} password: "$SMTP_PASSWORD" # Injected via env/file diff --git a/k8s/authelia/templates/deployment.yaml b/k8s/authelia/templates/deployment.yaml index b4f67d3..1148725 100644 --- a/k8s/authelia/templates/deployment.yaml +++ b/k8s/authelia/templates/deployment.yaml @@ -20,6 +20,12 @@ spec: - name: http containerPort: 9091 env: + - name: AUTHELIA_SERVER_ADDRESS + value: "tcp://0.0.0.0:9091" + - name: PUID + value: "1000" + - name: PGID + value: "1000" - name: JWT_SECRET valueFrom: secretKeyRef: diff --git a/scripts/fast-deploy-console b/scripts/fast-deploy-console new file mode 100755 index 0000000..7a5bc18 --- /dev/null +++ b/scripts/fast-deploy-console @@ -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