health

package
v0.0.0-...-ea9d87d Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCondition

func CheckCondition(nodeInfo *Node) error

func KubeletEvictionFsByPercentage

func KubeletEvictionFsByPercentage(percentage int) (string, error)

KubeletEvictionFsByPercentage takes a percentage integer from 0 to 100 and returns a matching kubelet hard-eviction argument. A percentage of 10 means that with 10 % free space, the cluster will start to taint the nodes, effectively blocking workloads to be scheduled.

Types

type Node

type Node struct {
	Nodes []v1.Node
}

Node provides data about a k3d cluster node.

func FetchNodeInfo

func FetchNodeInfo(ctx context.Context, clientset kubernetes.Interface) (info *Node, err error)

FetchNodeInfo returns information about current nodes.

func (*Node) String

func (info *Node) String() string

String returns a printable list of all nodes and their namespace.

Jump to

Keyboard shortcuts

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