Skip to content

andersmartini/pf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Portforward the EZ way

4 lines of bash that makes your K8s life that much easier.

uses grep to match a regex of your service name, and automatically picks a pod where all containers are running and sets up portforward to that pod

Installing

Clone this repo, and in its root catalogue, run: $ sudo cp ./pf.sh /usr/local/bin/pf

Running

$ pf myService 8080:8080

hint: you dont have to type out the entire service name, just enough to make it unique from other services. PF uses grep under the hood so anything that will match the wanted service but not the others is fine.

Future Features

  • ability to accept namespace flag, currently just goes of the current Kubectl context

About

K8s Portforwarding the EZ way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages