Posts
- The Validation That Didn't: Two set -e Bugs That Passed Their Tests
I wrote a sync script that pulls a list of network routes from git, validates each line, and refuses to apply bad data. It had two bugs that let bad data through anyway — and the unit tests went green on both. The culprits were a process substitution that couldn't abort its parent, and an IP octet quietly parsed as octal.
- Redpanda on Two Clusters: What Got in the Way
Rolling out a minimal Redpanda fleet with the Redpanda Operator to a cloud VM and a home NAS from one Argo CD. The cloud cluster came up on the first sync. The NAS got stuck on a registry mirror's allowlist, and a two-line pull request to someone else's repo unstuck it. Both now pass a produce/consume smoke test. Along the way: a chart setting that is silently ignored, telemetry that needs two switches to turn off, a disk guard that only works if it beats the kubelet, and a naming scheme that is cheap to read but expensive to change.
- From Pull to Push: One Argo CD for Every Redpanda Cluster
My home lab used to give every Kubernetes cluster its own Argo CD, each pulling its own manifests. For Redpanda I switched to one central Argo CD that pushes to every cluster, reaching a NAT'd NAS through Teleport with a bot that holds one-hour certificates. Here's why the push model is the better fit for a fleet of streaming clusters, what it costs, and the access-control surprise that turned a 'namespace-only' role into a cluster-wide one without anyone noticing.
- One Argo CD per Cluster, and One for Redpanda
My home lab runs an Argo CD on each cluster, and I want to keep that while also running Redpanda the way production does: one central Argo CD deploying it to every cluster through Teleport. This post covers the half that's built: isolation that makes a wrong kube context fail closed, a disk-pressure incident that turned out to be 53 GB of unused disk, and the target-cluster side of a narrow access chain. It also covers the half that's still planned, including a 'cheap rename' I had to take back.
- Letting Atlantis Manage Teleport Without Pretending It's Safe
Moving my home lab's Teleport roles into Terraform, driven by Atlantis, with a bot that joins using a projected ServiceAccount token instead of a stored secret. The plumbing took an afternoon. The harder part was being honest about what the least-privilege role actually protects: my first draft claimed there were no secrets involved and that a deny list kept the bot from locking me out, and both claims were wrong.
- The Kube Agent That Lived Next Door
A follow-up to the bundled k3s that couldn't create a thread — the post where I'd decided the cluster couldn't host the agent at all, and was wrong. It can; the chart just needed Unconfined. I ran the agent outside the cluster anyway, because it's the cleaner separation, and hit two traps worth more than the original mistake: a kubeconfig that was valid where it was born and useless once moved, and a NAS that couldn't reach Docker Hub. Both have the same moral — make the thing self-contained before you move it.
- The Defaults That Were Doing the Work
Standing up a self-managed modern k3s, a Teleport agent, and ArgoCD on a locked-down NAS — one that can't reach Docker Hub, boots a vendor k3s frozen at an EOL version, and has a root filesystem the size of a postage stamp. Nothing went wrong that was hard, exactly. What went wrong was that every convenience I'd stopped noticing — a reachable registry, a roomy /root, a project that creates itself, an identity that survives a config change, a Helm upgrade that just connects — turned out to be load-bearing, and the environment removed them one at a time.
- The Bundled k3s That Couldn't Create a Thread
A QNAP NAS ships a one-click k3s inside Container Station, so I tried to register it for Teleport Kubernetes Access. The agent went into CrashLoopBackOff with pthread_create: Operation not permitted — an old seccomp profile rejecting clone3. I had the mechanism right and the conclusion wrong: I decided the cluster couldn't run any threaded image and said so, out loud, before running the one cheap experiment that would have corrected me. This is that debugging trail and the test that turned the verdict inside out.
- A Teleport SSH Node on a NAS, Deployed Through a GUI: Four Traps
Adding a Teleport SSH target is usually an evening's work: an agent dials out over 443 and the box is reachable through the reverse tunnel. This time the box was a consumer NAS administered only through its web console — no host shell, no docker build, and a daemon that couldn't reach Docker Hub. Four traps followed: a GUI that hides the host, an image pull that timed out while egress worked fine, a dollar sign that Compose ate before the container ever saw it, and two agents sharing one node name.
- Terraform on Oracle Cloud: Eight Pitfalls I Hit So You Don't Have To
A free-tier OCI lab, Terraform managing instances, VCN and security rules, and a state file that later moved to OCI Object Storage's S3-compatible backend. Eight traps from that work: an import ID that is not what you assume, a 401 with two stacked causes, a plan that never goes clean, free-tier capacity rules nobody writes down, and an S3 backend that rejects every upload with 501 NotImplemented.
- Running Atlantis on My Own Cluster: Eight Lessons from One Long Evening
Atlantis installed on a small k3s ops node to drive Terraform for an Oracle Cloud infra repo, proven end-to-end with a comment-only pull request before any real change was allowed through. Eight lessons from that evening: a pod that runs happily on a dead token, a webhook chain debugged one gate at a time, a 401 caused by a group OCID, and a plan that wanted to destroy a VM over a variable Atlantis could not see.
- I Ran kube-bench and Trivy on My Own Cluster: 17 Criticals, 980 Highs — and Why the Real List Was Six Items
My practice cluster quietly grew production-shaped — GitOps, an authenticating proxy, web tools — so I audited it with the tools an auditor would use: kube-bench against the CIS k3s profile, and Trivy on every running image. The scanners reported 17 criticals and 980 highs. Sorted by reachability, the list that actually mattered was six items, and the first fix shipped the same weekend.
- Putting Argo CD Behind Teleport: App Access With MFA on a Single-Node Cluster
Our Argo CD was only reachable through an SSH tunnel — safe, but it taught us nothing about gated application access. We deployed Teleport inside the same k3s cluster, GitOps-managed by Argo CD itself, and put the UI behind login + MFA on port 443. Three traps along the way: a Helm value that moved and failed silently, repo credentials matched by exact URL string, and a join token name that is not a secret.
- The Username That Vanished: Five Layers of Debugging a Browser SSH Gateway
We put a web SSH client behind an auth gateway so the lab cluster needs no public ports. It then failed in five different ways — a crash loop, a proxy rewriting Host, a missing key, and finally an upstream bug that silently dropped the username from the ssh command whenever a ?host= override was used.
- New Machine, Same Cloud: Rebuilding a Terraform Workspace After a 401
Our Terraform workspace lived on exactly one laptop — code uncommitted, state local. Rebuilding it on another machine ran into a 401 with two stacked causes: a clock thirty minutes slow, and a hand-copied OCID that was a near-twin of the wrong identifier.
- Orphaned PVCs: Finding EBS Volumes Nothing Mounts Anymore
Every storage dashboard is built on kubelet stats, and kubelet only sees volumes a pod has mounted. The claims nobody mounts are invisible — but their EBS volumes still bill by the hour. Here is how to list them, and how to tell a true orphan from two look-alikes that are not safe to delete.
- From Console Clicks to Code: Adopting a Live VM into Terraform
Our practice cluster's apps were already GitOps-managed, but the VM underneath was pure console clicks. We adopted it into Terraform — instance first, firewall second — without rebuilding anything, and kept the two mistakes that taught us the most.
- From kubectl to Code: Designing a Storage Summary API
Answering 'where is our storage waste?' used to mean joining kubectl output, EBS volume IDs, and Prometheus by hand. We replaced the ritual with one small API — and designed its two defining traits on purpose: aggressive caching, and degrading gracefully instead of failing.
- The Rollout That Never Happened: Helm Upgraded, the Pods Didn't
I rebuilt the image, loaded it, and ran helm upgrade. Everything reported success — and the pod kept serving the old binary for eight days. A fixed image tag makes change invisible to Kubernetes; here's the mechanism and the fix.
- Monitoring Kubernetes Volume Usage with kubelet_volume_stats_used_bytes (and Its Gotchas)
The kubelet already exposes per-volume usage metrics to Prometheus. Here's the PromQL we use for dashboards and alerts, plus the five gotchas that will mislead you if you trust the numbers blindly.
- Redpanda Operator 26.2.1 Recreated Our PVCs: Why We Removed the Decommission Controller
A routine operator upgrade changed a StatefulSet template label. The new StatefulSetDecommissioner treated it as a decommission event and started recreating PVCs. Here's the incident, the root cause, and the fix.
- How We Cut ~$1,600/Month on EBS by Rightsizing Redpanda Volumes on Kubernetes
We were paying for 20 TiB of EBS gp3 for two Redpanda clusters while using less than half of it. Here's the exact measurement and migration process we used to rightsize stateful volumes you can't shrink in place.