🎳 forward - extended kubectl port-forward - multiple port forwarding simultaneously.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
internal/cmd
vendor
.gitignore
.goreleaser.yml
.travis.yml
LICENSE
README.md
go.mod
go.sum
main.go

README.md

🎳 forward

forward - extended kubectl port-forward - multiple port forwarding simultaneously.

Patreon Build Status License

Motivation

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

Roadmap

Demo

asciicast

Installation

Homebrew

$ brew install kamilsk/tap/forward

Binary

$ 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

From source code

# 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 .

egg1 is an extended go get.

1 The project is still in prototyping.


@kamilsk @octolab

made with ❤️ by OctoLab