Skip to content

a simple project determining the cluster capacity the way kubernetes sees it.

License

Notifications You must be signed in to change notification settings

abhiTamrakar/kapct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kapct

A project determining the cluster capacity the way kubernetes sees it.

This project calculates maximum number of pods that can be scheduled by caulating the remaining resources on each worker node* in the cluster.

It does not calculates resources used by master as long as master is not amongst labeled nodes.

USAGE

$ kapct [options]

options:

-cpulimit string

amount of CPU you desire in m(milicores), use only string formatted interger for cores. (default "100m")

-cpureq string

amount of CPU you desire in m(milicores), use only string formatted interger for cores. (default "100m")

-kubeconfig string

(optional) absolute path to the kubeconfig file (default "/home/tamrakar/.kube/config")

-legends

print legends and exit.

-memlimit string

amount of memory you desire in K(KB),M(MB),G(GB),T(TB) (default "1G")

-memreq string

amount of memory you desire in K(KB),M(MB),G(GB),T(TB) (default "1G")

-replicas int

number of replicas, you may want to deploy. (default 1)

-version

display version and exit.

About

a simple project determining the cluster capacity the way kubernetes sees it.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages