node

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNodeName        = "admiralty"
	DefaultCPUCapacity     = "20"
	DefaultMemoryCapacity  = "100Gi"
	DefaultPodCapacity     = "20"
	DefaultEnableNodeLease = false
)

Variables

This section is empty.

Functions

func NodeFromOpts

func NodeFromOpts(c Opts) *v1.Node

func Run

func Run(ctx context.Context, c Opts, client kubernetes.Interface) error

Types

type Opts

type Opts struct {
	NodeName        string
	CPU             string
	Memory          string
	Pods            string
	EnableNodeLease bool
}

func (*Opts) BindFlags

func (c *Opts) BindFlags()

Jump to

Keyboard shortcuts

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