Friday, 5:40 p.m. One production service needs a quick version bump.
An administrator connects to the cluster, runs a few commands, checks that it works, logs out. Weekend.
Nothing happened. Not yet.
Two weeks later, nobody remembers exactly what was changed. After a month, the test environment looks different from production, although „they are supposed to be the same". After six months, someone tries to rebuild the cluster from scratch and discovers that part of the configuration exists only in the running system, terminal history, Slack, and the head of the person who is now on vacation.
This scenario keeps coming back. Regardless of industry or company size.
Kubernetes gives teams enormous possibilities. But it does not bring order by itself. If changes are made manually, the cluster quickly becomes a set of decisions with no clear history. It works until it does not. Then you have to revive it without documentation and without certainty about the reference state.
Imperative or declarative
Traditional administration is imperative. We tell the system what to do: start this, change that, restart it, add this line.
The declarative model reverses that logic. We do not describe the steps. We describe the desired state. This is what the system should look like. Tools are responsible for keeping reality aligned with that description.
The difference sounds academic. In production, it is very practical.
In the imperative model, the truth about the system is the sum of every command anyone has ever run. Some of it is in documentation. Some in shell history. Some in pipelines. Some in people's memory.
In the declarative model, the main truth about the system lives in Git.
That does not mean everything without exception sits in the repository in plain form. Secrets, certificates, resources generated by operators, and runtime objects need their own approach. But the principle is simple: everything we consciously manage as platform and application configuration should have a description, a history, and a change process.
This approach is called GitOps. In practice, it is often built around two tools: Helm and ArgoCD.
Helm: one pattern, many environments
Helm acts as a package manager for Kubernetes. An application is described as a chart, a set of templates that accept parameters.
The same chart can support development, test, and production environments. The differences are reduced to value files: replica count, resource limits, database address, ingress configuration, feature flags, storage classes.
The effect is simple: environments stop drifting not because someone manually keeps them aligned, but because they are created from the same pattern.
This matters especially when there are more than a few applications. Without templates, every service starts living its own life. One team changes a readiness probe, another copies old configuration, a third increases CPU limits only in production. After a quarter, nobody knows which differences are intentional and which are accidental.
Helm does not solve this on its own. A badly maintained chart can also become a mess. But a well-designed chart gives the team a repeatable language for describing applications.
ArgoCD: compliance control
ArgoCD compares two things: the state stored in the repository and the state actually running in the cluster.
When a change appears in Git, ArgoCD can deploy it automatically or show it as ready for synchronization, depending on configuration. When someone changes something in the cluster outside the repository, ArgoCD detects the drift. It can only report it, or it can restore the expected state.
This detail matters. GitOps does not mean one operating mode for every organisation. Auto-sync is configured differently for stateless applications, critical components, test environments, and production systems under strict change management.
The basic flow is clear: repository change, review, approval, synchronization, history.
Nobody has to log in to production just to release a new application version.
What changes for administrators
The most common question we hear from teams is: „does this mean we lose control over the cluster?"
It is the opposite.
Control stops depending on memory and goodwill of individual people. It starts coming from the process.
Every change has an author, a description, and a history. A configuration change is a pull request. It is clear who changed what, when, and why. A reviewer has a chance to catch a mistake before deployment, not monitoring after the fact.
Rollback stops being guesswork. A new version causes problems? In many cases, we return to the previous commit or previous chart version. But there are limits: database migrations, CRD changes, storage, and stateful components do not always roll back as easily as an application deployment. That is why GitOps needs runbooks, not just a nice dashboard.
Fewer people need broad production permissions. If deployments go through the repository and ArgoCD, full administrative access is not needed for everyday work. That reduces the risk of mistakes and narrows the attack surface.
Audit stops being a separate project. Repository history gives a record of configuration changes. The question „who changed this and when?" should not mean a week of searching logs, emails, and chat history.
Rebuilding an environment becomes an engineering task, not archaeology. A new cluster, an additional test environment, disaster recovery: it all starts with the repository, charts, values, and procedures.
Platform knowledge stops living only in people's heads. It starts living in code.
Where it gets complicated
GitOps is not a switch you simply turn on.
The first difficulty is usually not technical. It is cultural. The most important rule is: no live fixes unless they later go through the repository.
A quick cluster change made outside Git can be detected or reverted by ArgoCD. The first time, it surprises people. The second time, it irritates them. The third time, the team understands that this is not a bug. It is the point of the whole approach.
The second difficulty is design decisions that must be made early, because they become expensive to change later.
How do you store secrets when passwords and keys cannot go into the repository as plain text? Do you use sealed secrets, external secrets, vault integration, or a cloud provider mechanism?
How do you define deployment order for components that depend on each other? What goes through Helm, what through Kustomize, what through an operator, and what should not be touched by automatic synchronization?
How do you organise repositories when there are several clusters, a dozen teams, and responsibility split between platform and application teams?
What happens when a change really must go in immediately and there is no time for full review? The right answer is not „we click manually and forget about it". The right answer is a documented emergency path: who can use it, when, how the change is recorded, and how it later returns to the repository.
Stateful components are a separate category. Databases follow different rules than stateless services. Teams must consciously decide what is managed declaratively and what remains under different control. Automatic „restore the desired state" sounds great until it touches a database cluster during failover.
All of these problems are known. All of them have proven solutions.
But discovering them on production is the most expensive form of learning.
Four questions before implementation
Before a team starts moving a cluster into the GitOps model, it is worth answering four questions.
- Can you recreate production today only from what is stored in the repository and procedures?
- Who has full access to the cluster, and do they really need it every day?
- What is the emergency path when a change must go in immediately?
- Which parts of your infrastructure are stateful, and how will you protect them from automatic synchronization?
If the answer to the first question is „no", the problem already exists. It simply has not shown itself yet.
How we work with clients
We do not implement GitOps next to the client's team. We implement it with them.
We start by reviewing the current environment and way of working. We check where configuration really lives, who has production access, how pipelines work, how secrets are stored, what is stateless, and what requires a more careful approach.
Then we design the structure of repositories, charts, and ArgoCD configuration for the real organisation. Not for a documentation example. For the number of teams, clusters, environments, security constraints, and the way administrators actually work.
We run the migration in stages. We start with less critical applications so the team can get used to the model before it covers production. In parallel, we create runbooks: synchronization, rollback, outage, exception, manual intervention, return to repository.
And we transfer knowledge. The goal is not a client who needs us for every change. The goal is a team that understands why the platform works the way it does and can continue developing it.
If you are wondering where to start bringing order to your clusters, let's talk.
Infrastructure becomes predictable only when it has a description, a history, and one source of truth.
