This one started as planned maintenance on my homelab Talos cluster and ended with two real production bugs fixed the same session. What made it worth writing up is that all three issues had the same underlying shape.
Part 1: the control plane was the bottleneck
My AI SRE agent’s capacity check flagged the control-plane node at 62% of CPU requests on 2 vCPUs, while the worker sat at 44% on 6. The original 2 + 6 split assumed the control plane would stay lightly loaded. It didn’t, as the cluster grew.
The fix was a rebalance to 4 + 4 through Terraform: an in-place cores change, same total host allocation. Before applying I made sure terraform plan showed 0 to add, 0 to destroy. I did the worker first (lower risk, no API server impact), checked cluster health, then the control plane. That meant accepting about 30 seconds of kube-apiserver downtime: it is a single control-plane cluster, so there was nothing to fail over to.
Two things turned up along the way:
- A plan-blocking bug. A
coalesce()on an optional Longhorn disk size errored whenever both the override and the default were empty, which on this cluster they always are. It had been blocking every plan, not just this one. Fixed withtry(coalesce(...), ""). - 39 orphaned PersistentVolumes (~136 GiB) in
Releasedstate from apps I had removed, all withRetainpolicy and no live claims. Deleted.
Part 2: ArgoCD stuck in ERR_TOO_MANY_REDIRECTS
Right after the reboot, the ArgoCD UI became completely inaccessible.
argocd-server reads ARGOCD_SERVER_INSECURE from the argocd-cmd-params-cm ConfigMap through configMapKeyRef. An env var from a ConfigMap is resolved once, when the pod is created. It does not follow later changes.
That ConfigMap had two owners: the Helm release (server.insecure: false in chart values) and a GitOps-managed override (server.insecure: "true", because TLS terminates at the edge). Whichever wrote last won. The reboot recreated the argocd-server pod at a moment when the stale false was in effect, so it started serving its own TLS redirects behind a proxy that was already terminating TLS. Hence the loop.
Immediate fix: confirm the live ConfigMap value was now true, then kubectl rollout restart deploy/argocd-server.
Permanent fix: remove the dual ownership by aligning the Helm values with the GitOps override, so there is one source of truth.
The same reboot also left two ArgoCD Applications showing stale Unknown/Progressing status while their pods were healthy underneath. A hard refresh cleared it; it was a cache artifact, not breakage.
Part 3: a product silently serving an old build
A user reported that a recently shipped UI theme had “disappeared” from one of my products.
The live Deployment had imagePullPolicy: IfNotPresent. The manifest in git had said Always since its first commit, so this was drift from some past manual edit. Combine that with a mutable :latest tag and you get this: any pod restart on a node that already had a cached latest keeps serving the old build without any error.
I proved it by comparing the running pod’s imageID digest with the registry’s current latest manifest digest. They didn’t match.
Fix: re-apply the manifest from git (restoring Always), roll the deployment, and confirm the new pod’s digest matched the registry.
The cross-cutting lesson
Every bug in this session had the same shape: something you expect to be reconciled continuously is actually applied once, at creation or restart time.
- Env vars from
configMapKeyRef imagePullPolicy: IfNotPresenton a mutable tag- A ConfigMap with two owners, where “last writer wins” is invisible until the next restart
None of these look wrong when you read the YAML. They surface only when something else, here a node reboot, forces the restart that exposes the staleness. So reboots are a good test: a planned restart of each node every so often will surface this class of bug on your schedule instead of during an outage.
Things I now check for in any cluster:
- Config that pods read at startup should trigger a rollout when it changes (a checksum annotation, or a reloader)
- Pin images by digest, or at least never pair
IfNotPresentwith a mutable tag - One owner per resource: if Helm and GitOps both write it, pick one
- Detect drift from git continuously instead of finding it by accident
The cluster and its manifests are public in talos-proxmox-gitops.
I do Kubernetes reliability audits and fractional SRE work, and this class of “applied once” bug is one of the first things I look for. See how I work.