Documentation ¶
Index ¶
Constants ¶
View Source
const Version string = "nodescaler:0.2"
Version is the current api version number
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodePool ¶
type NodePool interface { // Increase the node pool to a given size. // Should ignore requests to make the nodepool smaller IncreaseToSize(int64) error // Delete specific nodes in the cluster DeleteNodes(nodes []v1.Node) error }
NodePool is an interface to being able to manipulate a pool for nodes for Kubernetes.
type Option ¶
type Option func(*Server)
Option is an functional option for the server
func ServerBufferCount ¶
ServerBufferCount sets the number of cpuRequest to make sure is available at all times. Defaults to 5
func ServerMaxNodeNumber ¶
ServerMaxNodeNumber sets the maximum node number that can be in the cluster
func ServerMinNodeNumber ¶
ServerMinNodeNumber sets the minimum node number that can be in the cluster
func ServerShutdown ¶
ServerShutdown is the time from when a node is cordoned to when it can be shut down (when empty). Defaults to 1min
func ServerTick ¶
ServerTick is the time required for each tick between checks. Defaults to 10s
Click to show internal directories.
Click to hide internal directories.