hollownodes

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 47 Imported by: 0

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.

type NodeGroupConfig

type NodeGroupConfig struct {
	Logger         *zap.Logger
	Stopc          chan struct{}
	Client         k8s_client.EKS
	Nodes          int
	NodeNamePrefix string
	NodeLabels     map[string]string
	MaxOpenFiles   int64
}

NodeGroupConfig is the hollow nodes configuration.

Directories

Path Synopsis
Package local implements local Hollow Nodes.
Package local implements local Hollow Nodes.
Package remote implements remote Hollow Nodes.
Package remote implements remote Hollow Nodes.

Jump to

Keyboard shortcuts

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