mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-20 23:16:49 +00:00
Fix degraded apps: add nessus to project, remove duplicate guacamole route, update prometheus CRDs to v0.89.0
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# argocd-add-hostaliases.sh
|
||||
# Add hostAliases to ArgoCD server for Authentik OIDC
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
echo "=== Adding hostAliases to ArgoCD server ==="
|
||||
|
||||
NS=argocd
|
||||
EDGE_IP=$(kubectl get svc -n istio-system istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
|
||||
|
||||
echo "Istio edge gateway IP: $EDGE_IP"
|
||||
|
||||
if kubectl get deployment argocd-server -n "${NS}" -o jsonpath='{.spec.template.spec.hostAliases}' | grep -q "${EDGE_IP}"; then
|
||||
echo "✅ argocd-server already has hostAliases configured"
|
||||
else
|
||||
echo "Adding hostAliases to argocd-server..."
|
||||
kubectl patch deployment argocd-server -n "${NS}" --type='json' -p="[{\"op\": \"add\", \"path\": \"/spec/template/spec/hostAliases\", \"value\": [{\"ip\": \"${EDGE_IP}\", \"hostnames\": [\"auth.kube.huskypup.net\"]}]}]"
|
||||
echo "✅ hostAliases added to argocd-server"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== hostAliases configuration complete ==="
|
||||
echo "ArgoCD will now route auth.kube.huskypup.net through Istio edge gateway (${EDGE_IP})"
|
||||
echo "This ensures proper SSL certificate validation for Authentik OIDC"
|
||||
Reference in New Issue
Block a user