Skip to content

Contact

Mexico City, Mexico
Available for remote and on-site projects.

Professional networks

LinkedIn · GitHub · Email
Applied engineering, measurable results.

Migrating between clusters with JSON, Kustomize and patches

· 4 min read · Samuel Torres

I am Samuel Torres Pichardo, an engineer in Computing and Telecommunications Technologies, based in Mexico City. I have worked at Conqr Digital Agency since July 2025 and as a freelancer since January 2023, with more than 23 sites in production. I went to Cloud Native CDMX on Thursday, November 26, 2026, at Torre Manacar, and in the first talk, about disaster recovery and multi-cloud mobility in Kubernetes, I heard something that stuck with me: migrating between clouds is done with JSON, Kustomize or patches, and doing it by hand requires high-level engineers. I do not manage giant clusters every day, but I do move systems between servers and between providers, and the logic is the same: either the migration is described as data, or it depends on one person's memory. And what depends on one person's memory gets lost.

The first thing is to understand what a manifest is. In Kubernetes, the application is not described with clicks or with spoken instructions. It is described with documents: files that say what must exist, how many replicas, which image, which volume, which configuration. JSON is one of the formats for writing those documents. A JSON file says, in a clear structure, what the application looks like. If I have the application described in JSON, I can take it to another cluster: I give the document to the new cluster and the cluster brings up what the document describes. Without that document, there is nothing to move. There is only a system running in one place and the hope that someone knows how to rebuild it somewhere else.

But a fixed document is not enough. The application running in development is not identical to the one running in production. The passwords change, the addresses change, the number of replicas changes, the size of the volumes changes. If I have to maintain a different file for each environment, I end up with copies that drift apart: I change something in production and forget to change it in testing, or the other way around. That is where Kustomize comes in. Kustomize works with a base and with layers on top. The base describes the application as it is. Each environment adds its differences: production adds replicas, testing changes an address, development uses fewer resources. The application is one, and the differences are organized layers, not loose copies.

Patches are the third piece. A patch is a small, precise change on top of the base: it changes a value, adds a field, adjusts a setting, without rewriting the whole document. I see it as a correction with a scalpel: I do not rewrite the book, I change one line. When I migrate between clusters, patches help me adapt the application to the destination without touching the base: another network, another way of access, another volume name. The base is still the same application. The patch is what lets it live somewhere else.

Now, why does doing it by hand require high-level engineers? Because by hand means a person has to know what each field means, what depends on what and what breaks if something changes. It is not copy and paste. It is knowing that the destination cluster's network is not the same, that access to the services changes, that a volume that existed on one side has another name on the other. The speaker said it clearly: a manual migration requires covering network and access. If whoever migrates does not understand the network, the application comes up but cannot communicate. If they do not understand access, the application comes up but nobody can get in. And those errors are not visible at the moment of copying. They show up days later, when a customer cannot pay or a service does not respond.

I compare it to moving house. If I pack everything in labeled boxes, with an inventory of what goes in each box and a plan of where each thing goes in the new house, the move is heavy work but organized. If I throw everything into unlabeled bags, the move is chaos and something will surely get lost. JSON is the inventory. Kustomize is the room-by-room plan. Patches are the last-minute adjustments. And the high-level engineer is the person who knows how to read the inventory, the plan and the adjustments without getting lost.

How do I apply it? First, everything that can be described as data is described as data. No "I remember how it was configured". Second, a single base and layers per environment, so there are no copies drifting apart. Third, the migration is rehearsed in a testing environment before touching production: the whole application is brought up at the destination and you verify that it responds, that the data is there and that access works. And fourth, if the migration has to be done by hand, it should be done by someone who understands the network and access, not by whoever is available that day. A badly done migration is not noticed at first. It is noticed when the business depends on it.

Migrating between clusters is not a trendy trick. It is the ability for your application not to depend on the place where it was born. And you get that with clear documents, with tools like Kustomize and with precise patches, or with engineers who know how to do it by hand. What you cannot do is improvise. An application that cannot be moved is a trapped application. And a trapped application, sooner or later, makes you pay the price. Get a quote on WhatsApp in 2 min

Samuel Torres Pichardo

Samuel Torres Pichardo
Software and cloud engineer in Mexico City, with about 3 years of professional experience.
About me · LinkedIn · GitHub · Contact

Got a project in mind?

Hire me: I'll help you build it.

Websites, online stores, custom systems and cloud. Tell me what you need and I'll tell you how I'd build it, what it costs and how long it takes.

  • Mexico City · remote

Menu

Español

[email protected]