hollownodes

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Overview

Package hollownodes implements hollow nodes.

ref. https://github.com/kubernetes/kubernetes/blob/master/pkg/kubemark/hollow_kubelet.go ref. https://github.com/kubernetes/kubernetes/blob/master/pkg/kubemark/hollow_proxy.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 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) NodeGroup

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

	// Remote is true if run in remote nodes (inside Pod).
	Remote bool
}

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