83333c9f6b
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
14 lines
665 B
Bash
Executable file
14 lines
665 B
Bash
Executable file
#!/bin/bash
|
|
set -ex
|
|
|
|
kubectl port-forward $(kubectl get pods -l app=currencyservice -o=name | head -n 1) 7000:31337 &
|
|
kubectl port-forward $(kubectl get pods -l app=recommendationservice -o=name | head -n 1) 8081:8080 &
|
|
kubectl port-forward $(kubectl get pods -l app=cartservice -o=name | head -n 1) 7070:7070 &
|
|
kubectl port-forward $(kubectl get pods -l app=productcatalogservice -o=name | head -n 1) 3550:3550 &
|
|
kubectl port-forward $(kubectl get pods -l app=checkoutservice -o=name | head -n 1) 5050:5050 &
|
|
kubectl port-forward $(kubectl get pods -l app=shippingservice -o=name | head -n 1) 50051:50051 &
|
|
|
|
set +x
|
|
trap "exit" INT TERM ERR
|
|
trap "kill 0" EXIT
|
|
wait
|