Documentation ¶
Index ¶
Constants ¶
View Source
const ( LabelNodeRolePrefix = "node-role.kubernetes.io/" // NodeLabelRole specifies the role of a node RoleLabel = "kubernetes.io/role" )
Variables ¶
This section is empty.
Functions ¶
func PodRequestsAndLimits ¶
func PodRequestsAndLimits(pod *corev1.Pod) (reqs, limits corev1.ResourceList, err error)
Types ¶
type NodeInfo ¶
type NodeInfo struct { NodeName string `json:"nodeName,omitempty"` Status string `json:"status,omitempty"` Type string `json:"role,omitempty"` CreateTime string `json:"createTime,omitempty"` CpuCapacity string `json:"cpuCapacity,omitempty"` CpuAllocatable string `json:"cpuAllocatable,omitempty"` PodAllocatable string `json:"podAllocatable,omitempty"` PodCapacity string `json:"podCapacity,omitempty"` MemoryCapacity string `json:"memoryCapacity,omitempty"` MemoryAllocatable string `json:"memoryAllocatable,omitempty"` MemoryRequest string `json:"memoryRequest,omitempty"` MemoryLimit string `json:"memoryLimit,omitempty"` CpuRequest string `json:"cpuRequest,omitempty"` CpuLimit string `json:"cpuLimit,omitempty"` PodCount int `json:"podCount,omitempty"` }
Click to show internal directories.
Click to hide internal directories.