Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
/ kube-port-finder Public archive

kube-pf is a command line tool that find available ports on kubernetes

License

Notifications You must be signed in to change notification settings

Trendyol/kube-port-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Port Finder

kube-pf is a command line tool that find available ports on kubernetes. Written in Golang

Getting Started

Install kube-port-finder on Mac with Brew

brew tap trendyol/trendyol-tap
brew install kube-port-finder

Dependencies

Manual Installation

$ git clone https://github.com/trendyol/kube-port-finder

$ cd kube-port-finder

$ go get

$ go build kube-pf.go

Usage

$ ./kube-pf

NAME:
   kube-pf - Find available kubernetes node port number

USAGE:
   kube-pf [global options] command [command options] [arguments...]

VERSION:
   1.0.0

AUTHOR:
   Baris Ceviz @PeaceCwz

COMMANDS:
     add-credential, a  Add kubernetes credentials
     find, f            Find available port number
     help, h            Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

Add Kubernetes Credential

$ ./kube-pf add-credential --name "your-kube-config-name" --host "https://127.0.0.1" --username "kube-user" --password "kube-password"

Saved your credentials

Find Port Number

$ ./kube-pf find --name "your-kube-config-name" --range 1000,4000

Available 2292 port in your kubernetes

Contributing

  • If you want to contribute to codes, create pull request
  • If you find any bugs or error, create an issue

License

This project is licensed under the MIT Lıcense

About

kube-pf is a command line tool that find available ports on kubernetes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages