Kubernetes Migration: One Service at a Time, With a Way Back
A Kubernetes migration plan that moves one service at a time: inventory first, the cluster as code, a rollback for every step, and the old servers kept until the new ones prove themselves.

Most Kubernetes migrations that go badly do not fail on Kubernetes. They fail on the plan. The team picks a weekend, moves everything at once, and on Sunday night finds a cron job nobody knew about, a service that reads files from a local disk, or a database connection limit that was fine for four servers and not for forty pods. Rolling back means undoing the whole move, so nobody does, and Monday is spent firefighting.
The alternative is less exciting and much safer: move one service at a time, and give every step a way back. This post is the order we follow when a client asks us to move from servers, virtual machines or another cloud onto Kubernetes, and the questions worth answering before the first workload moves.
First, should this workload move at all?
A migration is a good moment to ask what each service actually needs. Kubernetes suits services that change often, scale with traffic and already run well in a container. It is not automatically the best home for everything:
-
Databases are often better on a managed service from your cloud provider than inside the cluster. You keep backups, failover and upgrades out of your own hands.
-
A small, rarely changed internal tool may be simpler on a plain VM or a managed container service.
-
Anything stateful and fragile deserves its own plan, not a slot in the general one.
-
Workloads that need GPUs can run on Kubernetes, but they need their own node pools and scheduling rules; GPU nodes on Kubernetes without wasting money covers that part.
Decide per workload, write down the reason, and move on. Pick the target that suits the workload, not the one that suits the diagram.
Step 1: Inventory what you really run
You cannot migrate what you do not know about. Before any plan, list:
- Every service, its runtime, and where it runs today.
- What each one talks to: databases, queues, caches, other services, external APIs.
- What it reads and writes on local disk.
- Scheduled jobs, including the ones in a crontab on one particular server.
- How it gets its configuration and secrets.
- Who owns it and who gets called when it breaks.
The dangerous items are the ones nobody remembers: a nightly export, a hard-coded IP address, a firewall rule that only allows the old server. Reading network connections, crontabs, config files and logs finds most of them. This is tedious work, and it is where AI is useful for us: it reads configuration and connection data and drafts the dependency map, and an engineer checks every line of it with the people who run the system.
Step 2: Build the target as code before anything moves
The cluster, its networking, its access rules and its supporting services (ingress, certificates, DNS, monitoring, secrets) should exist and be tested before the first real workload lands. Build it with Terraform or a similar tool, and describe the workloads with Helm charts or plain manifests, all in your own Git repository.
Two reasons. First, you can rebuild it if something goes wrong. Second, every change to it is reviewed, so the new environment does not start life as another set of hand-made changes. If secrets are currently in environment files on the old servers, the migration is the right time to fix that; our secrets management best practices cover the order we do it in.
Step 3: Get each service ready for a container
Most of the real migration work is here, not in the cluster. A service is ready to move when:
| Check | Why it matters on Kubernetes |
|---|---|
| Runs from an image built in CI | The same artifact goes to every environment |
| Reads config and secrets from the environment | Pods are replaced, files on the old host are not there |
| Writes nothing important to local disk | A restarted pod starts empty |
| Has a health and a readiness endpoint | Kubernetes decides traffic and restarts from these |
| Shuts down cleanly on a signal | Rolling updates stop pods all the time |
| Logs to standard output | Logs survive the pod and reach your log store |
| Has resource requests and limits | The scheduler needs them to place pods sensibly |
If the image is not yet built once and reused, fix that first. The CI process, step by step explains why every later stage should use the exact artifact CI tested.
Step 4: Move one service, with a rollback written down
Pick the first service to move carefully: something real but not the core of the business, with few dependencies and good monitoring. Then, for each service:
- Deploy it to the cluster alongside the old one. Both run; the old one still takes all the traffic.
- Point it at the same data. For stateless services this is just configuration. For anything that owns data, replicate ahead of time so the new copy is current before traffic moves.
- Shift traffic gradually. A small share first, through the load balancer or DNS with a short TTL, then more as error rates and latency hold.
- Know the rollback before you start. Usually it is “send traffic back to the old servers”, which only works if the old servers are still running and still have current data. Write it down and test it once.
- Watch it for a while. A few days of normal traffic, including whatever runs weekly or at month end, tells you more than a smooth first hour.
Then the next service. The order follows the dependency map: things with few dependents first, the busy shared services later, when the team has done the routine a few times.
Step 5: Retire the old environment last
It is tempting to switch the old servers off as soon as traffic has moved, to stop paying twice. Wait. The old environment is your rollback until the new one has proven itself through a full cycle of normal use: deploys, a busy day, scheduled jobs, a backup restore. Then remove it deliberately, one piece at a time, and check nothing still calls it.
Signs the plan is too big
- The migration has one date, and everything moves on it.
- Nobody can say how to roll back after half the services have moved.
- The dependency map is “in someone’s head”.
- The cluster is being set up by hand while workloads are already arriving.
- The old servers are scheduled for shutdown on the same day as the cut-over.
Each of these turns a series of small, reversible steps into one large bet.
How we run it
This is the shape of our Cloud and Kubernetes migration service. It starts with a free first consultation about what you run today and where you want it to go. We then build an inventory and dependency map, with AI helping read your servers and configuration and engineers checking it, and agree a fixed-price proposal for the target and the plan.
What you get is the target environment as code in your Git, a migration plan with the steps, the rollback point for each and the downtime to expect, and runbooks for operating the new setup. Workloads move one step at a time, each checked before the next, and every production change is approved by an engineer. Some moves can be done with no downtime; others need a short window, which we plan with you in advance. The old environment stays in place until the new one has proven itself.
If a Kubernetes migration keeps getting postponed because the risk feels too large, book a free call and we will help you break it into steps you can take back.


