hollownodes

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 54 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 Config

type Config struct {
	Logger *zap.Logger
	Stopc  chan struct{}

	EKSConfig *eksconfig.Config
	K8SClient k8s_client.EKS

	ECRAPI ecriface.ECRAPI
}

Config defines hollow nodes configuration.

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
	Client         k8s_client.EKS
	Stopc          chan struct{}
	Nodes          int
	NodeLabels     map[string]string
	MaxOpenFiles   int64
	KubectlPath    string
	KubeConfigPath string
}

NodeGroupConfig is the hollow nodes configuration.

type Tester

type Tester interface {
	// Create installs hollow nodes.
	Create() error
	// Delete deletes hollow nodes.
	Delete() error
}

Tester defines hollow nodes tester.

func NewTester

func NewTester(cfg Config) (Tester, error)

Jump to

Keyboard shortcuts

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