node

package
v0.0.0-...-0a5baa5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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 Node

type Node struct {
	Client client.Interface
	CrChan *channel.CRChan
}

func (*Node) Run

func (no *Node) Run(stopCh <-chan struct{}) error

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"`
}

Jump to

Keyboard shortcuts

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