microservices-demo/src/frontend/port-forward-dependencies.sh
Ahmet Alp Balkan 83333c9f6b k8s: cartservice listen addr
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:08 -07:00

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