Consider the following spec.topology.workers
from a sample Cluster resource:
A machine deployment has a single machine type. Therefore, you must create a different machine deployment for each machine type you want to use. In the example above, we have three replicas of cx53 machines and five replicas of cpx42 machines.
You can define as many machine deployments as you like, and scale them separately by setting the number of replicas
. It is also possible to use an autoscaler. If you are interested in doing so, please read How to Use Cluster Autoscaler.
Each machine deployment requires a unique name. This name will be reflected in the machine names in Hetzner.
If you want to assign a label to all nodes of a machine deployment, you can do so in metadata.labels
:
To set the amount of controlplane nodes, change the value of spec.topology.controlPlane.replicas
in your Cluster resource.
We support all VM types with at least 4GB RAM, shared or dedicated vCPU, including arm64 machines.
For control plane nodes, we recommend at least 4 vCPUs and 8 GB of RAM, using the CPX (Regular Performance) line. This corresponds to a CPX32 instance, though for most clusters, a CPX42 offers better performance and headroom.
Regular Performance series:
Type | vCPUs | RAM | SSD |
---|---|---|---|
CPX22 | 2 AMD | 4 GB | 80 GB |
CPX32 | 4 AMD | 8 GB | 160 GB |
CPX42 | 8 AMD | 16 GB | 240 GB |
CPX52 | 12 AMD | 24 GB | 320 GB |
CPX62 | 16 AMD | 32 GB | 640 GB |
Dedicated series:
Type | vCPUs | RAM | SSD |
---|---|---|---|
CCX13 | 2 AMD | 8 GB | 80 GB |
CCX23 | 4 AMD | 16 GB | 160 GB |
CCX33 | 8 AMD | 32 GB | 240 GB |
CCX43 | 16 AMD | 64 GB | 360 GB |
CCX53 | 32 AMD | 128 GB | 600 GB |
CCX63 | 48 AMD | 192 GB | 960 GB |
Cost-Optimized series:
Type | vCPUs | RAM | SSD |
---|---|---|---|
CX33 | 4 Intel/AMD | 8 GB | 80 GB |
CX43 | 8 Intel/AMD | 16 GB | 160 GB |
CX53 | 16 Intel/AMD | 32 GB | 320 GB |
CAX21 | 4 Ampere | 8 GB | 80 GB |
CAX31 | 8 Ampere | 16 GB | 160 GB |
CAX41 | 16 Ampere | 32 GB | 320 GB |
The CX line servers are focused on cost efficiency and as such run on older hardware, have limited availability and non-standard performance. Because of that, we only recommend using the CX server types for autoscaling or variable workloads that can handle changing CPU performance.
We only support controlplane machines in the same region.
Load Balancers at Hetzner are always in a single region, so there is no real benefit to having nodes in multiple regions because there is a single point of failure in the zone of your Load Balancer. In the event of an outage, even if your nodes are distributed, access to your cluster will be halted if your Load Balancer region is affected.
Having your nodes in a single region improves latency. This is relevant since etcd is latency sensitive, so this reduction will outweigh any benefits you might get from having a multi-region cluster.