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:

YAML
networking:
  public_network:
    ipv4: true
    ipv6: true
  private_network:
    enabled: true
  cni:
    enabled: true
    encryption: false
    mode: flannel

The 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)
CPUarm64 (Ampere)amd64
Control plane1 × CAX11, 2 vCPU, 4 GB1 × Cloud VPS 4, 4 vCPU, 8 GB
Workers3 × CAX21, 4 vCPU, 8 GB3 × Cloud VPS 6 NVMe, 6 vCPU, 12 GB
In frontHetzner load balancer mk4-edgeNo load balancer: Cloudflare round-robin, one record per worker
Cluster networkHetzner private network, flannelContabo private network, flannel VXLAN
Built byhetzner-k3s, from my laptopGitHub 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:

HCL
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.

jithendar.com's k3s cluster before and after the move. Visitors reach Cloudflare, which proxies and caches with SSL Full (strict) and holds the DNS. On the left, before: mk4 on Hetzner Cloud in Falkenstein, arm64. Cloudflare sends mk4's record to the Hetzner load balancer mk4-edge (LB11), which speaks the PROXY protocol to the Istio ingress gateway, a Service of type LoadBalancer. Behind it are master1, a CAX11 with 2 vCPU and 4 GB, and worker1 to worker3, three CAX21 with 4 vCPU and 8 GB each, all arm64, on a Hetzner private network with flannel and no encryption, built from a laptop with hetzner-k3s create, one control plane and no load balancer for the API. On the right, after: contabo-k3s on Contabo, region EU, amd64. Cloudflare sends three proxied A records, one per worker, round-robin, to HAProxy on every worker on ports 80 and 443, which forwards with PROXY v2 to the Istio ingress gateway on NodePorts 31080 and 31443. Behind it are master-1, a Cloud VPS 4 with 4 vCPU and 8 GB, and worker-1 to worker-3, three Cloud VPS 6 NVMe with 6 vCPU and 12 GB each, on a Contabo private network with flannel VXLAN, built by GitHub Actions with Terraform and Ansible. Below, how each part reaches the new cluster: the Migrate cluster workflow copies what Git doesn't have from mk4 (Secrets, namespace labels, databases and volume contents), while Create Contabo k3s builds the servers, k3s and the platform stack, and the application pipelines deploy jithendar.com, practice, moks-rag and the dashboards from Git.

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:

WhatHow 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, dashboardsTheir own pipelines from Git, pointed at the new cluster
Hand-made Secrets, namespace labels, databases, volume contentsWorkflow 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

The move in five phases, top to bottom, with the rollback. Phase 0, prepare, while mk4 serves alone: servers and k3s from GitHub Actions with Terraform, then Ansible and k3s-ansible; images for both CPUs, arm64 for mk4 and amd64 for Contabo under one tag; the platform from Create Contabo k3s and application pipelines that reach the API through an SSH tunnel. Phase 1, build, with both clusters in the rotation: Contabo's three worker records at Cloudflare beside mk4's record; the secrets step copies hand-made Secrets and namespace labels; the applications are deployed on Contabo from Git while mk4 still serves. Phase 2, trial run, while mk4 keeps serving: the databases step makes a copy and keeps any existing data as before; the volumes step copies Grafana, Qdrant and Open WebUI with their applications stopped first; then a test without DNS, curl --resolve to a worker, checking sign-in, images and Grafana. Phase 3, cutover, planned with the site down about 30 to 45 minutes: stop mk4 and copy again with stop old, stop new, databases, volumes, start new and compare; smoke tests, the same checks as in the trial run; DNS, Contabo only, by removing mk4's record and pointing www, postgres. and redis. at the workers too. A red dotted arrow from the DNS step leads to the rollback, possible until phase 4: put mk4's record back at Cloudflare, then run start old; anything written on Contabo in the meantime is lost. Phase 4, after a few quiet days, delete mk4: a last archive of every database, including registry and shipping; delete the Hetzner side, the servers, mk4-edge and their volumes; remove what points at it, the MK4_* secrets, DNS records, kubeconfig and state file.

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:

Bash
KUBECONFIG=~/.kube/contabo-k3s.yaml kubectl get nodes
NAME       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+k3s1

Adding -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:

Bash
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)