Skip to content
Snippets Groups Projects
Verified Commit 8aadfb08 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

add set-port-forward.sh which uses kubectl port-forward instead of ssh tunnels

parent 684c461e
No related branches found
No related tags found
1 merge request!55Resolve "Merge dashboard and dashboard-backend repos"
#!/bin/bash
echo "
kratos admin port will be at localhost: 8000
kratos public port will be at localhost: 8080
hydra admin port will be at localhost: 4445
mysql port will be at localhost: 3306
"
# Kill all processes when this script ends
trap "exit" INT TERM ERR
trap "kill 0" EXIT
# Add forwarded ports for all processes
kubectl port-forward -n stackspin service/kratos-admin 8000:80 &
kubectl port-forward -n stackspin service/kratos-public 8080:80 &
kubectl port-forward -n stackspin service/hydra-admin 4445:4445 &
kubectl port-forward -n stackspin service/single-sign-on-database-mariadb 3306:3306
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment