provision

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterConfiguration = "ClusterConfiguration"

Variables

This section is empty.

Functions

func KindCluster

func KindCluster(p *platform.Platform) error

KindCluster provisions a new Kind cluster

func PodStatus added in v0.17.10

func PodStatus(p *platform.Platform, period time.Duration) error

func RollingRestart

func RollingRestart(platform *platform.Platform, opts RollingOptions) error

Perform a rolling restart of nodes

func RollingUpdate

func RollingUpdate(platform *platform.Platform, opts RollingOptions) error

Perform a rolling update of nodes

func Status

func Status(p *platform.Platform) error

func Terminate added in v0.37.0

func Terminate(platform *platform.Platform) error

Terminate stops and deletes all VM's for a cluster;

func TerminateNodes

func TerminateNodes(platform *platform.Platform, nodes []string) error

TerminateNodes deletes all of the specified nodes stops and deletes all VM's for a cluster;

func TerminateOrphans

func TerminateOrphans(platform *platform.Platform) error

TerminateOrphans deletes all vm's that have not yet joined the cluster

func Upgrade

func Upgrade(platform *platform.Platform) error

Upgrade the kubernetes control plane to the declared version

func VM

func VM(platform *platform.Platform, vm *types.VM, konfigs ...string) error

VM provisions a new standalone VM

func VsphereCluster

func VsphereCluster(platform *platform.Platform, burninPeriod time.Duration) error

VsphereCluster provisions or creates a kubernetes cluster

func WithVmwareCluster

func WithVmwareCluster(p *platform.Platform) error

Types

type Cluster

type Cluster struct {
	*platform.Platform
	Nodes      NodeMachines
	Orphans    []types.Machine
	Kubernetes kubernetes.Interface
	Etcd       *EtcdClient
}

func GetCluster

func GetCluster(platform *platform.Platform) (*Cluster, error)

func (*Cluster) Cordon

func (cluster *Cluster) Cordon(node v1.Node) error

func (*Cluster) GetHealth

func (cluster *Cluster) GetHealth(node v1.Node) string

func (*Cluster) Terminate added in v0.17.13

func (cluster *Cluster) Terminate(node types.Machine) error

type EtcdClient added in v0.17.13

type EtcdClient struct {
	*platform.Platform
	Kubernetes        kubernetes.Interface
	PreferredHostname string
	Etcd              *etcd.EtcdClientGenerator
}

func GetEtcdClient added in v0.17.13

func GetEtcdClient(platform *platform.Platform, client kubernetes.Interface, PreferredHostname string) *EtcdClient

func (*EtcdClient) GetEtcdClient added in v0.17.13

func (cluster *EtcdClient) GetEtcdClient(node v1.Node) (*etcd.Client, error)

func (*EtcdClient) GetEtcdLeader added in v0.17.13

func (cluster *EtcdClient) GetEtcdLeader() (*etcd.Client, error)

func (*EtcdClient) GetHealth added in v0.17.13

func (cluster *EtcdClient) GetHealth(node v1.Node) string

func (*EtcdClient) GetOrphans added in v0.17.13

func (cluster *EtcdClient) GetOrphans() ([]string, error)

func (*EtcdClient) MoveLeader added in v0.17.13

func (cluster *EtcdClient) MoveLeader(name string) error

func (*EtcdClient) PrintStatus added in v0.17.13

func (cluster *EtcdClient) PrintStatus() error

func (*EtcdClient) RemoveMember added in v0.17.13

func (cluster *EtcdClient) RemoveMember(name string) error

type NodeMachine

type NodeMachine struct {
	Node    v1.Node
	Machine types.Machine
}

func (NodeMachine) String added in v0.17.9

func (node NodeMachine) String() string

type NodeMachines

type NodeMachines []NodeMachine

func (NodeMachines) Len

func (n NodeMachines) Len() int

func (NodeMachines) Less

func (n NodeMachines) Less(i, j int) bool

func (*NodeMachines) Pop added in v0.17.10

func (n *NodeMachines) Pop() NodeMachine

func (*NodeMachines) PopN added in v0.17.10

func (n *NodeMachines) PopN(count int) *[]NodeMachine

func (*NodeMachines) Push added in v0.17.10

func (n *NodeMachines) Push(x NodeMachine)

func (NodeMachines) Swap

func (n NodeMachines) Swap(i, j int)

type RollingOptions

type RollingOptions struct {
	Timeout                time.Duration
	MinAge                 time.Duration
	Max                    int
	MaxSurge               int
	HealthTolerance        int
	BurninPeriod           time.Duration
	Force                  bool
	ScaleSingleDeployments bool
	MigrateLocalVolumes    bool
	Masters, Workers       bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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