jithendar.com ran on mk4, a k3s cluster I built on Hetzner Cloud on 10 November 2026: one Arm control plane and three Arm workers in Falkenstein. Less than three weeks later it had run out of memory once, and Hetzner wouldn't let me add a fourth worker. On 30 November I started moving everything to four servers at Contabo.
This article is the why and the plan. You'll see what the old and the new cluster look like, why I chose Contabo, and how I set the move up so that the site kept running, I could test the new cluster with real traffic, and going back was one DNS record away.
This is part 1 of a six-part series on moving jithendar.com's k3s cluster from Hetzner to Contabo. The others cover the build (opens in a new tab), the images (opens in a new tab), CI access (opens in a new tab), the cutover (opens in a new tab) and the costs (opens in a new tab).
Why I left mk4
It ran out of memory
Each mk4 worker was a CAX21 with 4 vCPU and 8 GB, of which Kubernetes could hand out 7.55 GiB. Besides the site, they ran Open WebUI, docling, LiteLLM, Qdrant, Grafana, Prometheus and Argo CD. On 28 November one restart put a second LiteLLM pod on a full worker, and worker1 went NotReady for 11 minutes. I wrote that one up in the worker1 postmortem (opens in a new tab).
Right after it, a normal rollout of the site stayed Pending. A site pod requests 1.25 GiB of memory, and no worker had that much left unrequested. I could have squeezed requests and limits, but the honest answer was that three 8 GB workers were too small for what I run.
Hetzner refused a fourth worker
The obvious fix was another worker. mk4 was one file, hetzner-k3s.yaml in the k8s-deployments repository, and its networking block gave every server a public IPv4 and IPv6 address:
networking:
public_network:
ipv4: true
ipv6: true
private_network:
enabled: true
cni:
enabled: true
encryption: false
mode: flannelThe create failed with Hetzner's primary_ip_limit [ASK JITHENDAR: paste the full error output of the failed create, if you still have it]. My project could hold 10 primary IP addresses and all 10 were in use: two for each of the four servers and two for the load balancer mk4-edge.
The cheap servers were gone
When I checked on 30 November, Hetzner listed its whole Cost-Optimized line, CX and CAX alike, as not available. What I could actually order was a CPX32: 4 vCPU and 8 GB for €30.49 a month, where a CAX21 had cost €10.99. At Contabo, a Cloud VPS 6 has 6 vCPU and 12 GB, and the four servers I wanted, with their private network, came to €33.32 to €38.92 a month depending on the term, against €46.95 for mk4. Memory is what I ran out of, and Contabo gave me 44 GB for less than mk4's 28 GB. The full cost comparison is part 6 (opens in a new tab).
I didn't go straight to Contabo. I first wrote the cluster for OVHcloud and dropped it the next morning: for the same servers it was more expensive than Contabo [ASK JITHENDAR: the OVH monthly price you compared, if you want a number here].
Old and new, side by side
| mk4 (Hetzner) | contabo-k3s (Contabo) | |
|---|---|---|
| CPU | arm64 (Ampere) | amd64 |
| Control plane | 1 × CAX11, 2 vCPU, 4 GB | 1 × Cloud VPS 4, 4 vCPU, 8 GB |
| Workers | 3 × CAX21, 4 vCPU, 8 GB | 3 × Cloud VPS 6 NVMe, 6 vCPU, 12 GB |
| In front | Hetzner load balancer mk4-edge | No load balancer: Cloudflare round-robin, one record per worker |
| Cluster network | Hetzner private network, flannel | Contabo private network, flannel VXLAN |
| Built by | hetzner-k3s, from my laptop | GitHub Actions: Terraform, then Ansible |
The new cluster's servers aren't listed anywhere. Terraform reads them from the Contabo account, and the plan decides the role. This is the heart of contabo-k3s/terraform/nodes.auto.tfvars:
plans = {
V153 = "server" # Cloud VPS 4: the k3s control plane (exactly one)
V166 = "agent" # Cloud VPS 6 NVMe: the workers
}
private_network = true
# "dns" Cloudflare round-robin DNS: one proxied record per worker for the hostname below. Free, no health
# checks. Records not made here (the Hetzner one today) stay in the rotation until deleted at Cloudflare.
load_balancer = "dns"
region = "EU"The servers themselves were ready within a couple of minutes of ordering. One thing went wrong before I'd built anything: I ordered the control plane in Contabo's India region by mistake, while the workers were in the EU. After checking, I moved it to the EU. Part 2 tells the rest of the build.
The strategy: Git rebuilds, a workflow copies the rest
Almost everything on mk4 already came from Git: the platform from Terraform, the applications from their own pipelines. So I didn't copy the cluster. I rebuilt it from Git and copied only what Git doesn't have. The plan lives in cluster-migration/README.md in k8s-deployments, and this table is its first decision:
| What | How it reaches the new cluster |
|---|---|
| Platform: Istio, cert-manager, CloudNativePG, Valkey, monitoring, Argo CD, KEDA, Gatekeeper, … | Create Contabo k3s (scope "cluster and infrastructure"): minikube-infrastructure/ with vars/contabo-k3s.tfvars |
| Applications: jithendar.com, practice, moks-rag, dashboards | Their own pipelines from Git, pointed at the new cluster |
| Hand-made Secrets, namespace labels, databases, volume contents | Workflow Migrate cluster (migrate.sh), driven by migrate.conf |
Migrate cluster runs one step per run from GitHub Actions: check, secrets, stop old or stop new, databases, volumes, start old or start new, and compare. Every step leaves a log, and nothing needs my laptop.
The second decision was how traffic would move. I used round-robin DNS at Cloudflare and started deploying applications. At 07 UTC on 30 November, Terraform added one proxied A record per Contabo worker for jithendar.com, right beside mk4's record, which Terraform didn't make and so left alone. From then on both clusters were in the rotation, and I deployed the applications on Contabo while mk4 still served. The cutover is then a single change: delete mk4's record. Going back is the reverse: put it back.
It costs nothing, but it has limits. Round-robin DNS has no health checks of its own, and while both clusters serve, a visitor can land on either one, each with its own database [ASK JITHENDAR: how did you handle writes made on Contabo while both clusters were in the rotation, such as admin edits or flow runs?].
The phases
In short: prepare the servers, images and pipelines; put Contabo in the rotation and deploy; make a trial copy of the data while mk4 serves; then the cutover, which the README budgets at 30 to 45 minutes of downtime; and only after a few quiet days, delete Hetzner. How the copies work, and how the cutover went, is part 5.
The rollback
The rule in the README is one line:
Rollback (until phase 4): point DNS back, then `start old`. Anything written on Contabo meanwhile is lost.Two things make it cheap. mk4 isn't touched until phase 4, so its servers, databases and volumes are all still there. And stop doesn't just scale things down: it writes the value it changed on the object itself, in the annotation cluster-migration/stopped, so start old puts back exactly what was there before, even from a different run.
I tested both the plan and the rollback before relying on them [ASK JITHENDAR: when and how did you test them, what did you check, and how long did putting mk4's record back take?].
Some things stay behind on purpose: metrics, logs and traces (the new cluster starts collecting at once), Valkey's caches, the bge-m3 model (it's downloaded again) and the idle GitHub runners.
Problems I hit
Hetzner's primary IP limit. With IPv4 and IPv6 on every server, four servers and a load balancer use all ten primary IPs a project gets, so the fifth server failed with primary_ip_limit. I could have asked Hetzner for more, but with the cheap line off sale I looked elsewhere instead.
The control plane in the wrong region. Moving the India control plane to the EU gave it a new public address and a fresh install. The next apply, run 46375578388 (opens in a new tab), stopped before changing anything:
TASK [List the cluster's workers] **********************************************
fatal: [master-1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host x.x.x.x port 22: Connection timed out", "unreachable": true}The drain step runs before terraform apply, so it used the address stored by the last apply, which was the India one. The fix reads every server's current address from a refresh-only plan and hands those to the drain. Lesson: check the region in the panel before the first apply, not after.
Verify it works
Both clusters stay up until phase 4. On Contabo, with the kubeconfig from contabo-k3s/download-kubeconfig.sh:
KUBECONFIG=~/.kube/contabo-k3s.yaml kubectl get nodesNAME STATUS ROLES AGE VERSION
master-1 Ready control-plane 18h v1.37.2+k3s1
worker-1 Ready <none> 18h v1.37.2+k3s1
worker-2 Ready <none> 18h v1.37.2+k3s1
worker-3 Ready <none> 18h v1.37.2+k3s1Adding -L kubernetes.io/arch shows amd64 on all four. The same command with mk4's kubeconfig should list its four arm64 nodes until phase 4 deletes them.
To test the Contabo copy of the site without touching DNS, the README sends the request straight to one worker:
curl --resolve jithendar.com:443:<worker address> https://jithendar.com/Expected output: the home page's HTML, served by that worker, with a valid certificate for jithendar.com. Repeat it with the admin sign-in, an image from R2 and Grafana's public dashboards, which are the checks the plan uses before and after the cutover.
Key takeaways
- Find out what you actually run out of, then buy that. For me it was memory, and Contabo gave me 44 GB for less than mk4's 28 GB.
- Don't copy a cluster that Git can rebuild. Copy only Secrets, labels, databases and volumes, and let everything else redeploy.
- Round-robin DNS gives you both clusters in the rotation for free: the cutover is deleting a record and the rollback is adding it back. It has no health checks, and two live clusters mean two databases.
- Leave the old cluster untouched until the new one has had a few quiet days.
- Check the region before the first apply.
Next: Part 2: Building the Contabo k3s cluster with Terraform and Ansible (opens in a new tab)



Discussion comments
No comments yet. Start the discussion.