The terminal said rolled back. The next time I read the Deployment, its image was faulty.
In my first Kubernetes readiness lab, a new Pod failed its readiness check while the previous replica kept serving requests. I restored the previous Pod template with kubectl rollout undo. A reader asked what would happen if a GitOps controller were still watching a manifest that declared the faulty release. I answered that I would normally revert in Git first. This time I put that answer to the test. Original Kind experiment · Reader’s question · My reply
TL;DR
- In Kind, I ran a live undo with Argo CD self-healing enabled. Git still declared
faulty. My next Deployment read showedfaultyagain, and Argo CD reported a successful automatic sync for the same commit. - A Git revert created a new commit declaring
good. Once the repository served that commit, Argo CD synced it, the rollout completed, and the Service returned HTTP 200 fromgood. - The same Service had also returned 200 during the failed rollout. The response body identified which version served the request. The synced Git revision and the Deployment told me whether recovery was complete.
- The AWS delivery path is a separate, pending validation. The Kind run used locally built images and a local Git server.
What was running
I used one disposable Kind node running Kubernetes 1.37.0, Argo CD 3.6.4, and a local Git Smart HTTP server. A single Argo CD Application tracked main. Its automated sync policy had selfHeal: true. I built two images, loaded them into Kind, and committed manifests referencing their distinct local tags. The release commit changed only the image reference.
Figure E01. Two ways to change the same Deployment. A commit changes the template Argo CD will reconcile. A live undo targets Kubernetes revision history. Kubernetes Deployment rollback · Argo CD automated sync
I started with one replica and a rolling update configured with maxSurge: 1 and maxUnavailable: 0. Both variants could answer a synthetic checkout. I injected one fault: the new image returned 503 on /ready. Each checkout response included its serving variant, which let me distinguish a successful request to the old Pod from a successful release of the new one.
The Service kept answering during the failed release
Commit 79e8465 deployed good as Kubernetes Deployment revision 1. A request to /checkout through the Service returned HTTP 200 with variant=good. Then I advanced main to 6997381, which declared faulty.
Argo CD synced the commit. The new Pod reached Running but stayed 0/1 Ready, and the Deployment exceeded its progress deadline. The previous Pod was still 1/1 Ready. In the EndpointSlice I saw ready=true for the old Pod and ready=false for the new one. I made another request through the Service and got HTTP 200 from good. Kubernetes EndpointSlice conditions
Figure E02. The Service had a ready endpoint even as the rollout stalled. The variant in the HTTP response ties that individual request to the previous release.
The live undo left Git pointing at faulty
With Argo CD synced to 6997381, I ran:
kubectl rollout undo deployment/recovery-demo --to-revision=1 Kubernetes returned rolled back. When I next queried .spec.template.spec.containers[0].image, the tag ended in -faulty again. I checked the Argo CD Application too. Its operation was marked automatic, its phase was Succeeded, and the Deployment result said configured at commit 6997381. The branch still asked for the release I had tried to undo.
I didn’t capture changes to the Deployment’s Pod template between the rolled back acknowledgement and my next read. I couldn’t tell whether the image briefly switched to good during that interval.
The Git revert gave Argo CD a different target
I ran git revert 6997381. That created commit 695f30e, restoring the good image in the manifest. Checking the branch on the server Argo CD actually read caught a second problem: my working copy had the revert, but the server still advertised 6997381. I repeated the fast-forward push to the local repository and verified its refs/heads/main directly.
Then I watched the Application without requesting a manual sync. These were two consecutive samples on December 2, 2026:
| UTC | Revision reported by Argo CD | Sync | Health | Operation |
|---|---|---|---|---|
| 21:21:49 | 6997381 · faulty release | Synced | Degraded | Succeeded |
| 21:21:53 | 695f30e · Git revert | Synced | Healthy | Succeeded |
Both rows said Synced. Reading the SHA alongside that field told me when Argo CD had processed the revert. The recovery operation was marked automatic. These timestamps locate observations in a single run. Their spacing is the sampling interval here, not a measured recovery time.
Kubernetes then reported a completed rollout, observed generation 5, and one updated, available replica with the good image. The faulty Pod was still listed as unready at the instant I sampled. The only ready Service endpoint was the good Pod, and a request through the Service returned:
HTTP 200 accepted=true variant=good Figure E03/E04. Sequential actions in one Kind run. The undo result comes from the operator’s reads. The revert is also corroborated by the served Git ref, Argo CD status, a completed rollout and a versioned Service response.
Reproducing the experiments
Use an isolated Kind cluster, two locally loaded images with distinct tags, and a Git repository reachable by Argo CD. The first attempt used static HTTP and stopped before the baseline with unexpected EOF while listing refs. Git Smart HTTP served the repository successfully. The public runbook mounts the bare Git repository read-only into the cluster. That version still awaits an end-to-end rerun. Step-by-step Kind runbook
- Track one branch with automated sync and self-healing enabled. Promote
good, record its Git SHA and Kubernetes rollout revision, and query a synthetic operation through the Service. - Promote the readiness-failing image. Record the served branch tip, Argo CD sync revision and health, Deployment conditions, Pod readiness and EndpointSlice. Query the same Service path.
- Start watching the Deployment’s Pod template before the live undo so you can see whether the image briefly switches to
good. Undo to the recorded good revision. Keep Git fixed and record the next automatic operation, its timestamp, revision and resource result. - Revert the faulty promotion in Git. Verify the served branch tip, wait for Argo CD to sync that exact SHA, then verify the completed rollout, ready endpoint and serving variant. Remove the disposable cluster after collecting the evidence.
What still needs validation on EKS
The Terraform configuration, workflows and runbook exist locally. The following claims need a real AWS run before I can make them:
| Boundary | Evidence still needed |
|---|---|
| Provisioning and cleanup | Terraform provisions EKS, managed nodes, IAM and private ECR in the intended environment. Verify final inventory and actual cost after teardown. |
| Build and image identity | A GitHub Actions run assumes the intended AWS role through OIDC and pushes to ECR. Trace the ECR digest through the promotion commit, node pull and running container. |
| Reconciliation on EKS | Capture the annotation-drift trial, a failed release, live undo and Git-first recovery on EKS. Reset between comparison arms, retain both digests, and watch transient states before timing any transitions. |
The Kind test exercised one stateless workload and one controller policy. The sampled requests cannot establish continuous availability, and restoring an image does not reverse database changes or external side effects. The separate break-glass procedure discussed in the reader exchange, pausing reconciliation before a live intervention, remains untested. GitHub OIDC on AWS · ECR images on EKS · EKS pricing
The recovery check I would keep
The same 200 appeared while the release was broken and after it recovered. During an incident I would ask three questions before closing it: Which commit is the controller reading? Which image has completed its rollout? Which version answered through the Service?
Explore the Engineering Lab
The GitOps lab repository includes the synthetic checkout service, the Kind runbook and the results of the undo and revert. The EKS runbook covers the planned cloud experiment. GitOps recovery lab on GitHub · Recorded Kind results · Earlier readiness experiment
Build for capabilities, not vendors.
Deploy anywhere. Depend only on explicit contracts.
Independent engineering lab using synthetic data and a deliberate readiness fault. All reported runtime observations are from Kind.
© 2026 Rafael Terrero. Original article text and illustrations. All rights reserved, to the extent permitted by applicable law. Code licensing is separate and remains to be verified for this follow-up.
Product marks identify the tools in the experiment and belong to their respective owners. The Git logo is by Jason Long, used under Creative Commons Attribution 3.0. Git logo and attribution · CC BY 3.0




