Documentation ¶
Overview ¶
Package hollownodes implements Hollow Nodes. ref. https://github.com/kubernetes/kubernetes/blob/master/pkg/kubemark/hollow_kubelet.go
The purpose is to make it easy to run on EKS. ref. https://github.com/kubernetes/kubernetes/blob/master/test/kubemark/start-kubemark.sh
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubelet ¶ added in v1.1.9
type Kubelet interface { Start() Stop() }
func NewKubelet ¶ added in v1.1.9
func NewKubelet(cfg KubeletConfig) (Kubelet, error)
NewKubelet creates a new Kubelet. ref. "pkg/kubemark.GetHollowKubeletConfig" ref. https://github.com/kubernetes/kubernetes/blob/master/pkg/kubemark/hollow_kubelet.go "pkg/kubelet".fastStatusUpdateOnce runs updates every 100ms
type KubeletConfig ¶ added in v1.1.9
type KubeletConfig struct { Logger *zap.Logger Stopc chan struct{} Donec chan struct{} Client k8s_client.EKS NodeName string NodeLabels map[string]string MaxOpenFiles int64 }
KubeletConfig is the kubelet configuration. TODO: contribute to upstream, revisit EKS auth provider ref. https://github.com/kubernetes/kubernetes/pull/81796 ref. https://github.com/kubernetes/kubernetes/blob/master/pkg/kubemark/hollow_kubelet.go
type NodeGroup ¶
type NodeGroup interface { Start() error Stop() CheckNodes() (readyNodes []string, createdNodes []string, err error) }
NodeGroup represents a set of hollow node objects.
func CreateNodeGroup ¶
func CreateNodeGroup(cfg NodeGroupConfig) (ng NodeGroup, err error)
CreateNodeGroup creates a new hollow node group.