|
| 1 | +<!-- Post as a GitHub Discussion on kube-hetzner/terraform-hcloud-kube-hetzner --> |
| 2 | +<!-- Title: Interest in optional Karpenter autoscaling (k3s on MicroOS)? Feasibility check --> |
| 3 | + |
| 4 | +### Summary |
| 5 | + |
| 6 | +Gauging interest in an **opt-in** Karpenter autoscaling option using |
| 7 | +[`karpenter-provider-hetzner`](https://github.com/paperclipinc/karpenter-provider-hetzner), |
| 8 | +as an alternative to the current Cluster Autoscaler — and being upfront that |
| 9 | +MicroOS makes this the hardest of the Hetzner installers to support. |
| 10 | + |
| 11 | +**Disclosure:** I help maintain `karpenter-provider-hetzner`. This is a |
| 12 | +Discussion, not a PR — I want to validate feasibility and appetite with you |
| 13 | +first, because the honest answer may be "not yet." |
| 14 | + |
| 15 | +### The hard part (stated plainly) |
| 16 | + |
| 17 | +kube-hetzner runs **k3s on immutable openSUSE MicroOS**. Karpenter is |
| 18 | +bootstrap-agnostic (Hetzner runs the node `userData` as cloud-init), but the |
| 19 | +provider currently ships worked examples only for Ubuntu/kubeadm and Talos. A |
| 20 | +MicroOS path would need a cloud-init that reproduces your |
| 21 | +`autoscaler-cloudinit.yaml.tpl` flow — the k3s-agent install on the |
| 22 | +transactional-update OS, snapshot/reboot semantics, the shared k3s token and |
| 23 | +endpoint. That's real, MicroOS-specific work, not a thin addon. |
| 24 | + |
| 25 | +It would also overlap directly with your well-integrated Cluster Autoscaler |
| 26 | +path (same token/`HCLOUD_CLUSTER_CONFIG` plumbing), so it'd be a *second* |
| 27 | +autoscaler to maintain, not a gap-filler. |
| 28 | + |
| 29 | +### Why it might still be worth it |
| 30 | + |
| 31 | +Karpenter does per-pod instance-type selection across CX/CPX/CAX/CCX and |
| 32 | +consolidation, rather than fixed pre-declared pools. For users who want |
| 33 | +mixed-type bin-packing and aggressive scale-down, that's a meaningful upgrade |
| 34 | +over the CA model. |
| 35 | + |
| 36 | +### What I'd want from you before building anything |
| 37 | + |
| 38 | +1. Is an opt-in second autoscaler something kube-hetzner would consider, given |
| 39 | + the maintenance surface? |
| 40 | +2. If yes — would you prefer I first prove a **MicroOS + k3s-agent** Karpenter |
| 41 | + bootstrap works end-to-end (as a standalone example against a kube-hetzner |
| 42 | + cluster) before any module PR? That de-risks the OS-specific part. |
| 43 | +3. Any prior context I'm missing — I searched issues/discussions and found no |
| 44 | + existing Karpenter thread, but you'd know if it's been considered. |
| 45 | + |
| 46 | +For reference, here's the k3s (Ubuntu) bootstrap path I've already documented; |
| 47 | +the MicroOS variant would build on it: |
| 48 | +- https://github.com/paperclipinc/karpenter-provider-hetzner/blob/main/docs/k3s-bootstrap.md |
| 49 | + |
| 50 | +Thanks — kube-hetzner is the gold standard for k3s-on-Hetzner, so I'd rather do |
| 51 | +this right (or not at all) than bolt on something fragile. |
0 commit comments