Commit 36dda758 authored by George Papathanail's avatar George Papathanail
Browse files

fix(scripts): print kind access URLs from the live Services

parent e28b820b
Loading
Loading
Loading
Loading
+18 −9
Changes for scripts/helm-deploy.sh: 18 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -69,17 +69,26 @@ echo "━━━━━━━━━━━━━━━━━━━━━━━━
echo "Deployment complete!"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
show_url() {
    local label="$1" svc="$2" suffix="$3" port
    port=$(kubectl get svc "$svc" -n $OOP_NS -o jsonpath='{.spec.ports[0].nodePort}' 2>/dev/null || true)
    [[ -n "$port" ]] && printf "   %-20s http://localhost:%s%s\n" "$label:" "$port" "$suffix"
    return 0
}

echo "Access URLs (via localhost):"
echo "   SRM API:             http://localhost:32415"
echo "   OEG API:             http://localhost:32263/docs"
echo "   Keycloak:            http://localhost:30081"
echo "   Keycloak Admin:      http://localhost:30081/admin  (Username: admin)"
show_url "SRM API"            srm
show_url "OEG API"            oeg                "/docs"
show_url "Keycloak"           keycloak
show_url "Keycloak Admin"     keycloak           "/admin  (Username: admin)"
if kubectl get svc keycloak -n $OOP_NS >/dev/null 2>&1; then
    echo "      password: kubectl -n $OOP_NS get secret keycloak-credentials -o jsonpath='{.data.admin-password}' | base64 -d"
echo "   Federation Manager:  http://localhost:30989"
echo "   AI2 MCP:             http://localhost:32004"
echo "   AI2 AI Agent:        http://localhost:32013"
echo "   Portal:              http://localhost:30082"
echo "   Data Lab:            http://localhost:30083  (when enabled; kind: steward / alice / bob, password dev-user-password)"
fi
show_url "Federation Manager" federation-manager
show_url "AI2 MCP"            ai2-mcp
show_url "AI2 AI Agent"       ai2-ai-agent
show_url "Portal"             portal
show_url "Data Lab"           datalab-ui         "  (kind: steward / alice / bob, password dev-user-password)"
echo ""
echo "Useful commands:"
echo "   kubectl get pods -n $OOP_NS"