forward
- extendedkubectl port-forward
- reliable multiple port forwarding.
Instead of
$ kubectl get pod
NAME READY STATUS RESTARTS AGE
site-5d7f49cf95-zsct2 4/4 Running 0 1d
catalog-79c558d96-zg6cg 1/1 Running 0 1d
catalog-postgresql-7595dd6b9c-fkrbz 1/1 Running 0 1d
catalog-redis-76bbdf658b-4zdwc 1/1 Running 0 1d
site-redis-b654f56d4-55kvk 1/1 Running 0 1d
site-rabbitmq-7677fdf798-flswj 1/1 Running 0 1d
$ kubectl port-forward catalog-postgresql-7595dd6b9c-fkrbz 5432:5432 &
$ kubectl port-forward catalog-redis-76bbdf658b-4zdwc 6379:6379 &
$ ps x | fgrep 'kubectl port-forward ...' | xargs kill -SIGKILL
It's so boring... (╯°□°)╯︵┻━┻
I want to
$ forward postgresql 5432 redis 6379:6379
which redis?
> catalog-redis-76bbdf658b-4zdwc
site-redis-b654f56d4-55kvk
- v1: MVP
- Someday, 20xx
- Main concepts and working prototype.
- v2: Rate limiting
- Somehow, 20xx
- Better integration with Kubernetes.
$ brew install kamilsk/tap/forward
$ REQ_VER=0.1.0 # all available versions are on https://github.com/kamilsk/forward/releases/
$ REQ_OS=Linux # macOS is also available
$ REQ_ARCH=64bit # 32bit is also available
# wget -q -O forward.tar.gz
$ curl -sL -o forward.tar.gz \
https://github.com/kamilsk/forward/releases/download/"${REQ_VER}/forward_${REQ_VER}_${REQ_OS}-${REQ_ARCH}".tar.gz
$ tar xf forward.tar.gz -C "${GOPATH}"/bin/ && rm forward.tar.gz
# using standard go tools
$ go get -u github.com/kamilsk/forward
# or using egg tool
$ egg github.com/kamilsk/forward -- go install .
# with mirror
$ egg bitbucket.org/kamilsk/forward -- go install .
1 The project is still in prototyping.↩
made with ❤️ by OctoLab