Skip to main content

HCloudMachineTemplate

In HCloudMachineTemplate you can define all important properties for HCloudMachines. HCloudMachines are reconciled by the HCloudMachineController, which creates and deletes servers in Hetzner Cloud.

Overview of HCloudMachineTemplate.Spec#

template.spec.providerID
type: string
ProviderID set by controller.
template.spec.type
type: string
Desired server type of server in Hetzner's Cloud API. Example: cpx11.
required
template.spec.imageName
type: string

Specifies desired image of server. ImageName can reference an image uploaded to Hetzner API in two ways: either directly as name of an image, or as label of an image (see for more details).

required
template.spec.sshKeys
type: object

SSHKeys that are scoped to this machine.

template.spec.placementGroupName
type: string
Placement group of the machine in HCloud API, must be referencing an existing placement group.
template.spec.publicNetwork
type: object

Specs about primary IP address of server. If both IPv4 and IPv6 are disabled, then the private network has to be enabled.

default: {enableIPv4: true, enabledIPv6: true}