Documentation
¶
Index ¶
- func ExecuteFailoverScript(ctx context.Context)
- func NewHetznerCloudProvider() cloud.CloudProvider
- type Hetzner
- func (*Hetzner) GetLatestBackupName(ctx context.Context) string
- func (*Hetzner) GetVMSpecs(ctx context.Context, vmType string) *cloud.VMSpec
- func (*Hetzner) SetupDisasterRecovery(ctx context.Context)
- func (*Hetzner) UpdateCapiClusterValuesFileWithCloudSpecificDetails(ctx context.Context, capiClusterValuesFilePath string, _updates any)
- func (*Hetzner) UpdateMachineTemplate(ctx context.Context, clusterClient client.Client, _updates any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteFailoverScript ¶
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) GetVMSpecs ¶
func (*Hetzner) SetupDisasterRecovery ¶
func (*Hetzner) UpdateCapiClusterValuesFileWithCloudSpecificDetails ¶
Click to show internal directories.
Click to hide internal directories.