hetzner

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteFailoverScript

func ExecuteFailoverScript(ctx context.Context)

Let's say there are x (> 1) master nodes behind the Failover IP.

CAPH (Cluster API Provider Hetzner) will SSH into any one of those master nodes (let's denote it by β) and execute `kubeadm init`. The Machine resource corresponding to β will then be marked as ready. We'll wait for this event.

Once this event occurs, we'll SSH into β and run the Hetzner Failover Script (using the hetzner-robot App in KubeAid). This will make the Failover IP point to β.

The Kubernetes API server of the provisioned cluster will then be reachable via that Failover IP.

func NewHetznerCloudProvider

func NewHetznerCloudProvider() cloud.CloudProvider

Types

type Hetzner

type Hetzner struct{}

func (*Hetzner) GetLatestBackupName

func (*Hetzner) GetLatestBackupName(ctx context.Context) string

func (*Hetzner) GetVMSpecs

func (*Hetzner) GetVMSpecs(ctx context.Context, vmType string) *cloud.VMSpec

func (*Hetzner) SetupDisasterRecovery

func (*Hetzner) SetupDisasterRecovery(ctx context.Context)

func (*Hetzner) UpdateCapiClusterValuesFileWithCloudSpecificDetails

func (*Hetzner) UpdateCapiClusterValuesFileWithCloudSpecificDetails(ctx context.Context,
	capiClusterValuesFilePath string,
	_updates any,
)

func (*Hetzner) UpdateMachineTemplate

func (*Hetzner) UpdateMachineTemplate(
	ctx context.Context,
	clusterClient client.Client,
	_updates any,
)

Jump to

Keyboard shortcuts

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