Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.
/ forward Public archive

🎳 forward - extended kubectl port-forward - reliable multiple port forwarding.

License

Notifications You must be signed in to change notification settings

kamilsk/forward

Repository files navigation

🎳 forward

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

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