vsphere

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: Apache-2.0 Imports: 28 Imported by: 0

README

Cluster API vSphere Provider

Delete Cluster

This guide explains how to delete all resources that were created as part of your Cluster API Kubernetes cluster.

The provider currently only creates resources specified in the named machine config map. The default examples only provision VMs. If your custom HCL config configures load balancers, or provisions other resources, amend this guide as necessary.

  1. Delete all of the node Machines in the cluster. Make sure to wait for the corresponding Nodes to be deleted before moving onto the next step. After this step, the master node will be the only remaining node.
kubectl get nodes

# For each non-master node (See the "ROLES" column)
kubectl delete machines $MACHINE-NAME
  1. Delete the VM that is running your cluster's control plane. You can either do this from the vCenter UI or using govc.
govc vm.destroy $MACHINE-NAME

Documentation

Index

Constants

View Source
const InstanceStatusAnnotationKey = "instance-status"
View Source
const ProviderName = "vsphere"

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterActuator

type ClusterActuator struct {
	// contains filtered or unexported fields
}

ClusterActuator represents the vsphere cluster actuator responsible for maintaining the cluster level objects

func NewClusterActuator

func NewClusterActuator(clusterV1alpha1 clusterv1alpha1.ClusterV1alpha1Interface, k8sClient kubernetes.Interface, lister v1alpha1.Interface, eventRecorder record.EventRecorder) (*ClusterActuator, error)

NewClusterActuator creates the instance for the ClusterActuator

func (*ClusterActuator) Delete

func (ca *ClusterActuator) Delete(cluster *clusterv1.Cluster) error

Delete will delete any cluster level resources for the cluster.

func (*ClusterActuator) Reconcile

func (ca *ClusterActuator) Reconcile(cluster *clusterv1.Cluster) error

Reconcile will create or update the cluster

type DeploymentClient

type DeploymentClient struct{}

Contains vsphere-specific deployment logic that implements ProviderDeployer interface at sigs.k8s.io/cluster-api/cmd/clusterctl/clusterdeployer/clusterdeployer.go

func NewDeploymentClient

func NewDeploymentClient() *DeploymentClient

func (*DeploymentClient) GetIP

func (d *DeploymentClient) GetIP(cluster *clusterv1.Cluster, machine *clusterv1.Machine) (string, error)

func (*DeploymentClient) GetKubeConfig

func (d *DeploymentClient) GetKubeConfig(cluster *clusterv1.Cluster, master *clusterv1.Machine) (string, error)

type VsphereClient

type VsphereClient struct {
	// contains filtered or unexported fields
}

func NewGovmomiMachineActuator

func NewGovmomiMachineActuator(m manager.Manager, clusterV1alpha1 clusterv1alpha1.ClusterV1alpha1Interface, k8sClient kubernetes.Interface, lister v1alpha1.Interface, eventRecorder record.EventRecorder) (*VsphereClient, error)

TODO: remove 2nd arguments

func (*VsphereClient) Create

func (vc *VsphereClient) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error

func (*VsphereClient) Delete

func (vc *VsphereClient) Delete(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error

func (*VsphereClient) Exists

func (vc *VsphereClient) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) (bool, error)

func (*VsphereClient) Update

func (vc *VsphereClient) Update(ctx context.Context, cluster *clusterv1.Cluster, goalMachine *clusterv1.Machine) error

Directories

Path Synopsis
provisioner

Jump to

Keyboard shortcuts

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