Fix authelia deploy issue
This commit is contained in:
parent
21bf25996a
commit
4b0ed4d3e0
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue