actions

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddControlPlane

func AddControlPlane(clusterName, machineName, version string) (*nodes.Node, error)

AddControlPlane adds a control plane to a given cluster

func AddWorker

func AddWorker(clusterName, machineName, version string) (*nodes.Node, error)

AddWorker adds a worker to a given cluster.

func ConfigureLoadBalancer

func ConfigureLoadBalancer(clusterName string) error

ConfigureLoadBalancer updates the external load balancer with new control plane nodes. This should be run after every KubeadmJoinControlPlane

func CreateControlPlane

func CreateControlPlane(clusterName, machineName, lbip, version string, mounts []cri.Mount) (*nodes.Node, error)

CreateControlPlane is creating the first control plane and configuring the load balancer.

func DeleteClusterNode

func DeleteClusterNode(clusterName, nodeName string) error

DeleteClusterNode will remove the kubernetes node from the list of nodes (during a kubectl get nodes).

func DeleteControlPlane

func DeleteControlPlane(clusterName, nodeName string) error

DeleteControlPlane will take all steps necessary to remove a control plane node from a cluster.

func DeleteWorker

func DeleteWorker(clusterName, nodeName string) error

DeleteWorker removes a worker node from a cluster

func GetLoadBalancerHostAndPort

func GetLoadBalancerHostAndPort(allNodes []nodes.Node) (string, int32, error)

GetLoadBalancerHostAndPort returns the port on the host on which the APIServer is exposed

func InstallCNI

func InstallCNI(node *nodes.Node) error

InstallCNI installs a CNI plugin from a node

func KubeConfigPath

func KubeConfigPath(clusterName string) string

KubeConfigPath returns the path to the kubeconfig file for the given cluster name.

func KubeadmConfig

func KubeadmConfig(node *nodes.Node, clusterName, lbip string) error

KubeadmConfig writes the kubeadm config to a node

func KubeadmInit

func KubeadmInit(clusterName, version string) error

KubeadmInit execute kubeadm init on the boostrap control-plane node of a cluster

func KubeadmJoin

func KubeadmJoin(clusterName string, node *nodes.Node) error

KubeadmJoin executes kubeadm join on a node

func KubeadmJoinControlPlane

func KubeadmJoinControlPlane(clusterName string, node *nodes.Node) error

KubeadmJoinControlPlane joins a control plane to an existing Kubernetes cluster.

func KubeadmReset

func KubeadmReset(clusterName, nodeName string) error

KubeadmReset will run `kubeadm reset` on the control plane to remove.

func ListControlPlanes

func ListControlPlanes(clusterName string) ([]nodes.Node, error)

ListControlPlanes returns the list of control-plane nodes for a cluster

func ProviderID

func ProviderID(name string) string

ProviderID formats the provider id needed to set on the node

func SetNodeProviderRef

func SetNodeProviderRef(clusterName, nodeName string) error

SetNodeProviderRef patches a node with docker://node-name as the providerID

func SetUpLoadBalancer

func SetUpLoadBalancer(clusterName string) (*nodes.Node, error)

SetUpLoadBalancer creates a load balancer but does not configure it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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