- Docs
- Concepts
- Platform internals
- In-cluster components scaling and spread
In-cluster components scaling and spread
Syself manages the replica counts and placement of several components in kube-system. Their replica counts adjust to the nodes they serve, and scheduling rules spread replicas across eligible nodes.
You do not need to manage their replica counts yourself. The following sections describe which nodes each component counts, how many replicas it runs, and where those replicas can be scheduled.
Replica counts and placement
Each component has its own cluster-proportional-autoscaler, which calculates the Deployment's replica count from the nodes it serves.
| Component | Replica count | Nodes counted | Eligible nodes for placement |
|---|---|---|---|
| CoreDNS | One per 8 nodes or per 256 vCPUs, whichever requires more replicas; at least 2 | All nodes | All nodes; prefers workers |
| metrics-server | 1 on a one-node cluster, otherwise 2 | All nodes | All nodes; prefers workers |
| Hetzner CSI controller | 0 with no cloud workers, 1 with one, otherwise 2 | Cloud workers | Cloud workers only |
| Hetzner cloud controller manager (CCM) | 1 with one or two control planes, otherwise 2 | Control planes | Control planes |
| TopoLVM controller | 0 with no bare-metal workers, 1 with one, otherwise 2 | Bare-metal workers | Bare-metal workers only |
The autoscalers count nodes that are joining or cordoned as well as schedulable nodes. This means the replica count can temporarily exceed the number of nodes available to run those replicas.
See CoreDNS behavior and tuning for details about its scaling configuration.
If you change a Deployment's replica count manually, its autoscaler restores the calculated value within seconds.
Why a replica can remain Pending
Scheduling rules spread replicas across eligible nodes. Two replicas of metrics-server, the CSI controller, or the TopoLVM controller cannot run on the same node.
CoreDNS follows the same rule on clusters created with 1.37. Clusters upgraded from 1.36 retain their previous CoreDNS scheduling behavior, which allows replicas to share a node when necessary.
The cloud controller manager spreads replicas across control planes where possible.
If there are more replicas than eligible nodes, the extra replicas remain Pending. This can happen while nodes are joining or draining, or when a node has a taint that the component does not tolerate.
For example:
$ kubectl -n kube-system get events --field-selector involvedObject.name=<pending-coredns-pod>
0/6 nodes are available: 1 node(s) didn't match pod anti-affinity rules, 5 node(s) had untolerated taint(s).
Check the pod's events to see which scheduling constraints prevent it from running. The pending replica starts when an eligible node becomes available.
Running replicas are not automatically moved when a more suitable node becomes available.
Components follow the node pools they serve
The storage controllers run only when their corresponding worker pool exists:
- Hetzner CSI controller: Runs when the cluster has cloud workers. It does not run in a cluster with only bare-metal workers.
- TopoLVM controller: Runs when the cluster has bare-metal workers. It does not run in a cluster with only cloud workers.
Adding the corresponding worker pool causes the controller to start. Removing the pool reduces its replica count accordingly.
Related
The Storage Model
Syself Autopilot ships two storage backends, network-attached Hetzner Cloud volumes and local disks through TopoLVM; local disks are fast but pinned to one machine, so a database on local disk cannot move off that machine.
Minimal Provider Dependency
Syself Autopilot takes servers and load balancers from Hetzner and nothing else, and never builds a security boundary on the Hetzner private network.