项目作者: kamilsk

项目描述 :
🎳 forward - extended kubectl port-forward - reliable multiple port forwarding.
高级语言: Go
项目地址: git://github.com/kamilsk/forward.git
创建时间: 2018-12-21T09:58:19Z
项目社区:https://github.com/kamilsk/forward

开源协议:MIT License

下载


🎳 forward

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

Build
Template

💡 Idea

  1. $ forward postgresql 5432 redis 6379:6379

Full description of the idea is available here.

🏆 Motivation

Instead of

  1. $ kubectl get pod
  2. NAME READY STATUS RESTARTS AGE
  3. site-5d7f49cf95-zsct2 4/4 Running 0 1d
  4. catalog-79c558d96-zg6cg 1/1 Running 0 1d
  5. catalog-postgresql-7595dd6b9c-fkrbz 1/1 Running 0 1d
  6. catalog-redis-76bbdf658b-4zdwc 1/1 Running 0 1d
  7. site-redis-b654f56d4-55kvk 1/1 Running 0 1d
  8. site-rabbitmq-7677fdf798-flswj 1/1 Running 0 1d
  9. $ kubectl port-forward catalog-postgresql-7595dd6b9c-fkrbz 5432:5432 &
  10. $ kubectl port-forward catalog-redis-76bbdf658b-4zdwc 6379:6379 &
  11. $ ps x | fgrep 'kubectl port-forward ...' | xargs kill -SIGKILL
  12. It's so boring... (╯°□°)╯︵┻━┻

I want to

  1. $ forward postgresql 5432 redis 6379:6379
  2. which redis?
  3. > catalog-redis-76bbdf658b-4zdwc
  4. site-redis-b654f56d4-55kvk

🤼‍♂️ How to

asciicast

🧩 Installation

Homebrew

  1. $ brew install kamilsk/tap/forward

Binary

  1. $ curl -sSL https://bit.ly/install-forward | sh
  2. # or
  3. $ wget -qO- https://bit.ly/install-forward | sh

Source

  1. # use standard go tools
  2. $ go get -u github.com/kamilsk/forward
  3. # or use egg tool
  4. $ egg tools add github.com/kamilsk/forward

egg1 is an extended go get.

Bash and Zsh completions

  1. $ forward completion bash > /path/to/bash_completion.d/forward.sh
  2. $ forward completion zsh > /path/to/zsh-completions/_forward.zsh

1 The project is still in prototyping.


made with ❤️ for everyone