Documentation ¶
Index ¶
- Constants
- func GetNodeControlRoles(node *coreV1.Node) []string
- func GetNodeHostName(node *coreV1.Node) string
- func GetNodeIp(node *coreV1.Node, addrType coreV1.NodeAddressType) string
- func GetNodePressures(node *coreV1.Node) []string
- func GetNodeReadyStatus(node *coreV1.Node) string
- func IsNodeController(roles []string) bool
- func SortNodeModels(nodes []NodeModel)
- func SortPodModels(pods []PodModel)
- type ClusterSummary
- type ContainerStatusSummary
- type NodeModel
- type PodContainerSummary
- type PodModel
Constants ¶
View Source
const ( ControlPlaneLabel = "node-role.kubernetes.io/control-plane" MasterNodeLabel = "node-role.kubernetes.io/master" )
Variables ¶
This section is empty.
Functions ¶
func GetNodeControlRoles ¶
func GetNodeHostName ¶
func GetNodePressures ¶
func GetNodeReadyStatus ¶
func IsNodeController ¶
func SortNodeModels ¶
func SortNodeModels(nodes []NodeModel)
func SortPodModels ¶
func SortPodModels(pods []PodModel)
Types ¶
type ClusterSummary ¶
type ClusterSummary struct { Uptime metav1.Time // oldest running node NodesReady int NodesCount int Namespaces int PodsRunning int PodsAvailable int Pressures int ImagesCount int VolumesAttached int VolumesInUse int JobsCount int CronJobsCount int StatefulSetsReady int DeploymentsTotal int DeploymentsReady int DaemonSetsDesired int DaemonSetsReady int ReplicaSetsReady int ReplicaSetsDesired int AllocatableNodeCpuTotal *resource.Quantity AllocatableNodeMemTotal *resource.Quantity RequestedPodCpuTotal *resource.Quantity RequestedPodMemTotal *resource.Quantity UsageNodeCpuTotal *resource.Quantity UsageNodeMemTotal *resource.Quantity PVCount int PVsTotal *resource.Quantity PVCCount int PVCsTotal *resource.Quantity }
type ContainerStatusSummary ¶
type NodeModel ¶
type NodeModel struct { Name string Roles []string Controller bool Hostname string Role string Status string Pressures []string CreationTime metav1.Time TimeSinceStart string InternalIP string ExternalIP string PodsCount int ContainerImagesCount int VolumesInUse int VolumesAttached int KubeletVersion string OS string OSImage string OSKernel string Architecture string ContainerRuntimeVersion string RequestedPodCpuQty *resource.Quantity RequestedPodMemQty *resource.Quantity AllocatableCpuQty *resource.Quantity AllocatableMemQty *resource.Quantity AllocatableStorageQty *resource.Quantity UsageCpuQty *resource.Quantity UsageMemQty *resource.Quantity }
func NewNodeModel ¶
func NewNodeModel(node *coreV1.Node, metrics *v1beta1.NodeMetrics) *NodeModel
type PodContainerSummary ¶
type PodContainerSummary struct { RequestedMemQty *resource.Quantity RequestedCpuQty *resource.Quantity VolMounts int Ports int }
func GetPodContainerSummary ¶
func GetPodContainerSummary(pod *v1.Pod) PodContainerSummary
type PodModel ¶
type PodModel struct { Namespace string Name string Status string Node string IP string TimeSince string PodRequestedCpuQty *resource.Quantity PodRequestedMemQty *resource.Quantity PodUsageCpuQty *resource.Quantity PodUsageMemQty *resource.Quantity NodeAllocatableCpuQty *resource.Quantity NodeAllocatableMemQty *resource.Quantity NodeUsageCpuQty *resource.Quantity NodeUsageMemQty *resource.Quantity ReadyContainers int TotalContainers int Restarts int Volumes int VolMounts int }
func NewPodModel ¶
func NewPodModel(pod *v1.Pod, podMetrics *metricsV1beta1.PodMetrics, nodeMetrics *metricsV1beta1.NodeMetrics) *PodModel
Click to show internal directories.
Click to hide internal directories.