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 here for more details).
required
template.spec.sshKeys
type: object
SSHKeys that are scoped to this machine.
template.spec.sshKeys.hcloud
type: []object
SSH keys for HCloud.
template.spec.sshKeys.hcloud.name
type: string
Name of SSH key.
required
template.spec.sshKeys.hcloud.fingerprint
type: string
Fingerprint of SSH key - used by the controller.
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.
template.spec.publicNetwork.enableIPv4
type: bool
Defines whether server has IPv4 address enabled. As Hetzner load balancers require an IPv4 address, this setting will be ignored and set to true if there is no private net.
default: true
template.spec.publicNetwork.enableIPv6
type: bool
Defines whether server has IPv6 address enabled.
default: true
default: {enableIPv4: true, enabledIPv6: true}