25 lines
617 B
Bash
25 lines
617 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Kill existing tunnels to prevent port conflicts
|
|
killall kubectl 2>/dev/null
|
|
|
|
# Kubernetes Dashboard (Kong Proxy)
|
|
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443 &
|
|
|
|
# Alloy UI (Internal Health)
|
|
kubectl -n monitoring port-forward ds/alloy 12345:12345 &
|
|
|
|
# Grafana
|
|
kubectl -n monitoring port-forward svc/grafana-service 3000:3000 &
|
|
|
|
echo "Dashboard: https://localhost:8443"
|
|
echo "Alloy UI: http://localhost:12345"
|
|
echo "Grafana: http://localhost:3000"
|
|
|
|
echo "Grafana: http://grafana.localhost:8080"
|
|
echo "Blog: http://blog.localhost:8080"
|
|
|
|
wait
|