Skip to content

Commit 5977bdf

Browse files
committed
Enhance ingress configuration in monitoring.yml with proxy redirect annotations for Grafana
1 parent 66a195f commit 5977bdf

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

.github/workflows/endpoints.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -111,27 +111,4 @@ jobs:
111111
echo "ArgoCD -> Password: $ARGOCD_PASS"
112112
echo "Grafana -> Username: admin"
113113
echo "Grafana -> Password: ${{ secrets.GRAFANA_PASSWORD }}"
114-
echo "Prometheus -> No login needed (anonymous access by default)"
115-
116-
echo ""
117-
echo "================= TROUBLESHOOTING TIPS ================="
118-
LB_COUNT=$(kubectl get svc -A --field-selector spec.type=LoadBalancer --no-headers 2>/dev/null | wc -l)
119-
INGRESS_COUNT=$(kubectl get ingress -A --no-headers 2>/dev/null | wc -l)
120-
121-
echo "📊 Current LoadBalancers: $LB_COUNT"
122-
echo "📊 Current Ingress Resources: $INGRESS_COUNT"
123-
echo ""
124-
echo "🔍 If monitoring services aren't accessible:"
125-
echo " 1. Check if NGINX Ingress Controller is installed"
126-
echo " 2. Verify domain 'monitoring.yourdomain.com' points to NGINX LB"
127-
echo " 3. Check ingress resource was created successfully"
128-
echo " 4. Ensure kube-prometheus-stack synced without errors in ArgoCD"
129-
echo ""
130-
echo "💰 Cost Impact:"
131-
echo " • Target: 2 LoadBalancers (ArgoCD + NGINX Ingress)"
132-
echo " • Current: $LB_COUNT LoadBalancers"
133-
if [ "$LB_COUNT" -gt 2 ]; then
134-
EXCESS=$((LB_COUNT - 2))
135-
COST=$((EXCESS * 16))
136-
echo " • Potential monthly savings: ~\$$COST (reducing $EXCESS extra LoadBalancers)"
137-
fi
114+
echo "Prometheus -> No login needed (anonymous access by default)"

argocd/monitoring.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ spec:
6666
annotations:
6767
nginx.ingress.kubernetes.io/rewrite-target: /$2
6868
nginx.ingress.kubernetes.io/use-regex: "true"
69+
nginx.ingress.kubernetes.io/proxy-redirect-from: "http://$host/"
70+
nginx.ingress.kubernetes.io/proxy-redirect-to: "/grafana/"
6971
hosts:
7072
- monitoring.yourdomain.com
7173
paths:

0 commit comments

Comments
 (0)