Cluster Configuration Options
Hetzner Locations
Node Group API
Node Actions API
See Restarting a Node and Resizing the Bastion or Gateway for usage examples and response shapes.
SSH Key API
Architecture
A Hetzner cluster provisions the following infrastructure:
All nodes are deployed within a private Hetzner network and have no public IPs. The bastion host plays two roles:
- SSH jump host - Ankra provisions and manages nodes through it, and it is the entry point for
ssh -Jaccess. - NAT gateway - a network route sends the nodes’ default traffic (
0.0.0.0/0) to the bastion, which masquerades it out through its public IP. All node egress - image pulls, package installs, and the Ankra Agent’s outbound connection - flows through the bastion.
LoadBalancer services get Hetzner Load Balancers from the CCM, attached to nodes over the private network.
Automatic Cloud Integration (hcloud Stack)
Ankra automatically deploys a hcloud stack during cluster provisioning. This stack includes:hcloudnamespace - dedicated namespace for Hetzner cloud componentshcloud-tokensecret - contains your Hetzner API token and network ID, sourced from the credential used to create the cluster- hcloud-cloud-controller-manager - integrates the cluster with Hetzner Cloud APIs (node metadata, load balancers, node lifecycle)
- hcloud-csi - provides persistent storage using Hetzner Cloud Volumes
hcloud-token secret, and Ankra ensures the correct dependency order.
You do not need to manually set up the CCM or CSI driver - they are provisioned as part of cluster creation using the same Hetzner API credential you provided.
External Cloud Provider
Hetzner clusters are provisioned with--kubelet-arg=cloud-provider=external and --disable-cloud-controller. This configures k3s to delegate node initialization to the Hetzner Cloud Controller Manager.
When nodes first join the cluster, they carry a node.cloudprovider.kubernetes.io/uninitialized taint that prevents workload scheduling. The CCM removes this taint after initializing each node with its Hetzner provider ID, zone labels, and instance metadata. The Ankra Agent tolerates this taint so it can schedule immediately and begin managing the cluster before the CCM is fully running.
Hetzner Cloud Controller Manager (hcloud-ccm)
The Hetzner Cloud Controller Manager is automatically deployed as part of the hcloud stack and provides:- Node metadata - automatic zone, region, and instance type labels on nodes
- Load Balancers - Kubernetes
LoadBalancerservices backed by Hetzner Cloud Load Balancers - Node lifecycle - automatic removal of deleted nodes from the cluster
- Route management - pod network routes via Hetzner Cloud Networks
hcloud namespace with 3 replicas and a PodDisruptionBudget. It reads the Hetzner API token from the hcloud-token secret that Ankra creates automatically.
CCM Configuration
The default CCM values configured by Ankra:hcloud-cloud-controller-manager addon in the hcloud stack via the Stack Builder.
The CCM creates Hetzner Cloud Load Balancers when you create Kubernetes
Service resources of type LoadBalancer. These Load Balancers are managed by Hetzner Cloud, not by Ankra. Delete LoadBalancer services before terminating the cluster to avoid orphaned resources and unexpected charges.Hetzner CSI Driver (hcloud-csi)
The Hetzner CSI Driver is automatically deployed as part of the hcloud stack and provides:- Dynamic provisioning - create Hetzner Cloud Volumes on demand via
PersistentVolumeClaim - Volume expansion - resize volumes without downtime
- Storage classes -
hcloud-volumesStorageClass available out of the box
CSI Configuration
The default CSI values configured by Ankra:storageClassName: hcloud-volumes:
The CSI driver creates Hetzner Cloud Volumes when you create PersistentVolumeClaims using the
hcloud-volumes StorageClass. These Volumes are managed by Hetzner Cloud, not by Ankra. The default reclaimPolicy is Retain, meaning Hetzner Volumes are not deleted when PVCs are removed. Delete PVCs and their backing Hetzner Volumes before terminating the cluster to avoid orphaned resources and unexpected charges.Ingress Stack (Optional)
Wheninclude_ingress is enabled during cluster creation, Ankra deploys an ingress stack alongside the hcloud stack. The ingress stack includes:
- ingress-nginx - NGINX-based Ingress controller with a Hetzner Cloud Load Balancer
- cert-manager - automated TLS certificate management
- Let’s Encrypt ClusterIssuer - a
letsencrypt-prodClusterIssuer configured for HTTP-01 validation