node

package
v0.0.0-...-86ea481 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNonTerminatedPodsOfNode

func GetNonTerminatedPodsOfNode(client kubernetes.Interface, nodeName string) (*corev1.PodList, error)

func GetPodsOfNode

func GetPodsOfNode(client kubernetes.Interface, nodeName string) (*corev1.PodList, error)

func GetPodsTotalRequestsAndLimits

func GetPodsTotalRequestsAndLimits(podList *corev1.PodList) (reqs map[corev1.ResourceName]resource.Quantity, limits map[corev1.ResourceName]resource.Quantity)

GetPodsTotalRequestsAndLimits returns a dictionary of all defined resources summed up for all pods.

func PodRequestsAndLimits

func PodRequestsAndLimits(pod *corev1.Pod) (reqs, limits corev1.ResourceList)

PodRequestsAndLimits returns a dictionary of all defined resources summed up for all containers of the pod. If pod overhead is non-nil, the pod overhead is added to the total container resource requests and to the total container limits which have a non-zero quantity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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