forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
port-forward.sh
executable file
·34 lines (26 loc) · 898 Bytes
/
port-forward.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
set -eu -o pipefail
killall kubectl || true
info() {
echo '[INFO] ' "$@"
}
info "MinIO on http:https://localhost:9000"
kubectl -n argo port-forward pod/minio 9000:9000 &
info "Metrics server on http:https://localhost:9090"
kubectl -n argo port-forward deploy/workflow-controller 9090:9090 &
argo_server=$(kubectl -n argo get pod -l app=argo-server -o name)
if [[ "$argo_server" != "" ]]; then
info "Argo Server on http:https://localhost:2746"
kubectl -n argo port-forward svc/argo-server 2746:2746 &
fi
postgres=$(kubectl -n argo get pod -l app=postgres -o name)
if [[ "$postgres" != "" ]]; then
info "Postgres on http:https://localhost:5432"
kubectl -n argo port-forward "$postgres" 5432:5432 &
fi
mysql=$(kubectl -n argo get pod -l app=mysql -o name)
if [[ "$mysql" != "" ]]; then
info "MySQL on http:https://localhost:3306"
kubectl -n argo port-forward "$mysql" 3306:3306 &
fi
wait