Documentation ¶
Index ¶
- func IsNodeAboveTargetUtilization(nodeThresholds api.ResourceThresholds, thresholds api.ResourceThresholds) bool
- func IsNodeWithLowUtilization(nodeThresholds api.ResourceThresholds, thresholds api.ResourceThresholds) bool
- func NodeUtilization(node *v1.Node, pods []*v1.Pod, evictLocalStoragePods bool) (api.ResourceThresholds, []*v1.Pod, []*v1.Pod, []*v1.Pod, []*v1.Pod, []*v1.Pod)
- func SortNodesByUsage(nodes []NodeUsageMap, resourcename v1.ResourceName)
- type NodePodsMap
- type NodeUsageMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNodeAboveTargetUtilization ¶
func IsNodeAboveTargetUtilization(nodeThresholds api.ResourceThresholds, thresholds api.ResourceThresholds) bool
func IsNodeWithLowUtilization ¶
func IsNodeWithLowUtilization(nodeThresholds api.ResourceThresholds, thresholds api.ResourceThresholds) bool
func NodeUtilization ¶
func NodeUtilization(node *v1.Node, pods []*v1.Pod, evictLocalStoragePods bool) (api.ResourceThresholds, []*v1.Pod, []*v1.Pod, []*v1.Pod, []*v1.Pod, []*v1.Pod)
Nodeutilization returns the current usage of node.
func SortNodesByUsage ¶
func SortNodesByUsage(nodes []NodeUsageMap, resourcename v1.ResourceName)
Types ¶
type NodePodsMap ¶
func CreateNodePodsMap ¶
func CreateNodePodsMap(client clientset.Interface, nodes []*v1.Node) NodePodsMap
createNodePodsMap returns nodepodsmap with evictable pods on node.
type NodeUsageMap ¶
type NodeUsageMap struct { Node *v1.Node Usage api.ResourceThresholds SIsNodeUschedulable bool // contains filtered or unexported fields }
func GetNodeUsage ¶
func GetNodeUsage(npm NodePodsMap, evictLocalStoragePods bool) []NodeUsageMap
Click to show internal directories.
Click to hide internal directories.