Documentation ¶
Index ¶
- func AddControlPlane(clusterName, machineName, version string) (*nodes.Node, error)
- func AddWorker(clusterName, machineName, version string) (*nodes.Node, error)
- func ConfigureLoadBalancer(clusterName string) error
- func CreateControlPlane(clusterName, machineName, lbip, version string, mounts []cri.Mount) (*nodes.Node, error)
- func DeleteClusterNode(clusterName, nodeName string) error
- func DeleteControlPlane(clusterName, nodeName string) error
- func DeleteWorker(clusterName, nodeName string) error
- func GetLoadBalancerHostAndPort(allNodes []nodes.Node) (string, int32, error)
- func InstallCNI(node *nodes.Node) error
- func KubeConfigPath(clusterName string) string
- func KubeadmConfig(node *nodes.Node, clusterName, lbip string) error
- func KubeadmInit(clusterName, version string) error
- func KubeadmJoin(clusterName string, node *nodes.Node) error
- func KubeadmJoinControlPlane(clusterName string, node *nodes.Node) error
- func KubeadmReset(clusterName, nodeName string) error
- func ListControlPlanes(clusterName string) ([]nodes.Node, error)
- func ProviderID(name string) string
- func SetNodeProviderRef(clusterName, nodeName string) error
- func SetUpLoadBalancer(clusterName string) (*nodes.Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddControlPlane ¶
AddControlPlane adds a control plane to a given cluster
func ConfigureLoadBalancer ¶
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 ¶
DeleteClusterNode will remove the kubernetes node from the list of nodes (during a kubectl get nodes).
func DeleteControlPlane ¶
DeleteControlPlane will take all steps necessary to remove a control plane node from a cluster.
func DeleteWorker ¶
DeleteWorker removes a worker node from a cluster
func GetLoadBalancerHostAndPort ¶
GetLoadBalancerHostAndPort returns the port on the host on which the APIServer is exposed
func InstallCNI ¶
InstallCNI installs a CNI plugin from a node
func KubeConfigPath ¶
KubeConfigPath returns the path to the kubeconfig file for the given cluster name.
func KubeadmConfig ¶
KubeadmConfig writes the kubeadm config to a node
func KubeadmInit ¶
KubeadmInit execute kubeadm init on the boostrap control-plane node of a cluster
func KubeadmJoin ¶
KubeadmJoin executes kubeadm join on a node
func KubeadmJoinControlPlane ¶
KubeadmJoinControlPlane joins a control plane to an existing Kubernetes cluster.
func KubeadmReset ¶
KubeadmReset will run `kubeadm reset` on the control plane to remove.
func ListControlPlanes ¶
ListControlPlanes returns the list of control-plane nodes for a cluster
func ProviderID ¶
ProviderID formats the provider id needed to set on the node
func SetNodeProviderRef ¶
SetNodeProviderRef patches a node with docker://node-name as the providerID
Types ¶
This section is empty.