kube-port-finder

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2019 License: MIT Imports: 6 Imported by: 0

README

Kubernetes Port Finder

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

Getting Started

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

$ cd kube-port-finder

$ 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

Dependencies

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL