
·12 min read
How a Single-Node Kubernetes Cluster Accidentally Grew to 550 Pods
Nobody planned it. Every request was "just one more thing". What broke, why we didn't stop in time, and the limits I'd set from day one.
A past client from my DevOps-as-a-Service days had a single-node Kubernetes cluster that started with reasonable intentions. It was supposed to be lightweight, a simple setup for a modest workload.
Then came the incremental additions. "Can we add this monitoring tool?" Sure. "The team needs this developer environment." No problem. "Let's deploy this analytics service too." Why not.
Before anyone realized what was happening, that single node was running 550 pods.
Five. Hundred. Fifty. Pods.
On. One. Node.
How It Started
The initial setup was sensible. The client needed a development environment that could handle a few microservices. A single-node Kubernetes cluster seemed appropriate:
- Moderate resource requirements
- Limited budget for infrastructure
- Small team with simple deployment needs
- Expected to host maybe 20-30 pods at most
The server was provisioned for that. Not overpowered, not underpowered.
The deployment worked. Services came up. Developers were happy. Everything looked green.
The Slippery Slope
Infrastructure never stays static. Teams always need "just one more thing."
Month 1-3: The additions seemed reasonable.
Initial pods: ~25
+ Logging stack (Elasticsearch, Fluentd, Kibana): +15 pods
+ Monitoring (Prometheus, Grafana): +8 pods
+ Developer tools: +12 pods
Current total: ~60 podsStill manageable. The node had capacity. Everything worked.
Month 4-6: The pace accelerated.
+ Multiple staging environments: +80 pods
+ CI/CD tooling: +25 pods
+ Message queue infrastructure: +30 pods
+ Database replicas: +20 pods
Current total: ~215 podsAt this point, we started seeing occasional DNS timeouts. Nothing consistent. Easy to blame on "network issues" or "transient problems." Restarts fixed it, so nobody dug deeper.
Month 7-12: The flood gates opened.
+ Per-developer namespaces: +150 pods
+ A/B testing environments: +80 pods
+ Partner integration sandboxes: +60 pods
+ Various "temporary" testing workloads: +45 pods
Final count: 550 podsEach addition made sense in isolation. Nobody was trying to create a disaster. But nobody was looking at the aggregate picture either.
Wait, isn't the limit 110?
Yes. If you're doing the math, a stock kubelet won't run more than 110 pods on a node (maxPods: 110 is the default, and it's the same number the upstream large-cluster guidance gives). When you hit it, new pods sit in Pending with:
0/1 nodes are available: 1 Too many pods.So you don't get to 550 by accident alone. Somewhere on the way past ~215, someone raised maxPods in the kubelet config (or --max-pods on older setups) and moved on. In hindsight, that one-line change was the real decision point, and it got made like a config tweak.
IPs are the other wall. With the default per-node pod CIDR of /24 (256 addresses) and a CNI that uses host-local IPAM from the node's podCIDR (Flannel, for example), you run out of addresses at roughly 250 pods. Even a /23 only gives you about 510. For 550 you need a /22, or a CNI like Calico that hands out its own IP blocks instead of the node's podCIDR.
When The Cracks Appeared
The problems started subtle, then cascaded.
DNS Resolution Failures
Services randomly couldn't resolve each other. Pods would work fine for hours, then suddenly start failing DNS lookups. CoreDNS was overwhelmed, but monitoring didn't catch it because the failures were intermittent.
From inside an app pod it looked like this:
$ nslookup orders.default.svc.cluster.local
;; connection timed out; no servers could be reachedAnd CoreDNS itself was timing out on everything it had to forward upstream:
$ kubectl -n kube-system logs deploy/coredns | grep ERROR
[ERROR] plugin/errors: 2 api.github.com. A: read udp 10.1.0.12:51734->10.0.0.2:53: i/o timeoutNotice the in-cluster name never shows up in CoreDNS's errors. CoreDNS answers cluster.local from its own cache of the API, so those queries weren't failing in CoreDNS. They were getting dropped on the way to it. That's the conntrack problem in the next section, wearing a DNS costume.
We scaled CoreDNS replicas. It helped for a week. Then the problem returned. In hindsight that makes sense: on one node, more CoreDNS replicas still share the same CPU and the same conntrack table (next section), so you're not adding capacity, you're adding more pods to the pile.
Internal Networking Breakdown
This was the really nasty part. The internal cluster networking started failing in ways that were barely documented online.
The iptables rule set grew past anything reasonable. The kernel's connection tracking table was constantly full. Every new pod deployment caused a wave of connection resets across existing pods.
$ sysctl net.netfilter.nf_conntrack_count net.netfilter.nf_conntrack_max
net.netfilter.nf_conntrack_count = 262144
net.netfilter.nf_conntrack_max = 262144Connection tracking table: maxed out. All the time. When it's full, the kernel drops new connections and tells you so in dmesg with nf_conntrack: table full, dropping packet. If you see that line, stop looking for a network problem.
Tuning nf_conntrack_max higher helped temporarily. But with 550 pods constantly communicating, we were playing whack-a-mole with kernel limits.
One gotcha if you go down this road: kube-proxy sets nf_conntrack_max itself on startup (conntrack.maxPerCore, 32768 per core by default), so a plain sysctl -w can get overwritten the next time kube-proxy restarts. Change it in the kube-proxy config, not only on the host.
To see how big the iptables side got:
iptables-save | wc -lThat number grows with Services and endpoints, and kube-proxy rewrites the rules on every change. With 550 pods churning, it was rewriting a lot.
etcd Under Siege
etcd was never meant to carry this on a single node.
Watches multiplied. Every kubelet, controller, and operator keeps watches open on the API server, and the API server sits on etcd. The database struggled under constant write pressure from status updates, leases and events across hundreds of pods.
What etcd looked like at the worst point:
$ etcdctl endpoint health
127.0.0.1:2379 is healthy: successfully committed proposal: took = 3.2s
$ etcdctl endpoint status --write-out=table # trimmed to the columns that mattered
+----------------+---------+-----------+------------+
| ENDPOINT | DB SIZE | IS LEADER | IS LEARNER |
+----------------+---------+-----------+------------+
| 127.0.0.1:2379 | 6.8 GB | true | false |
+----------------+---------+-----------+------------+"Healthy", says etcd, while a single write takes 3.2 seconds. endpoint health only checks that a proposal commits eventually, so don't treat it as a latency check. On a healthy single node that number is in the low milliseconds. Database size close to the 8 GB that etcd suggests as the practical maximum. (The default quota is 2 GB. Past it, etcd raises a NOSPACE alarm and the API server starts rejecting writes with mvcc: database space exceeded. So to reach 6.8 GB, the quota had been raised too.) Backup and restore operations taking 20+ minutes.
One member, no quorum to fall back on. We were one power outage away from complete cluster loss.
Resource Starvation
CPU and memory were predictably exhausted, but the symptoms were weird.
Kubernetes system components fought for resources with application pods. The scheduler would slow to a crawl. Pod startups took minutes instead of seconds. Health checks timed out not because pods were unhealthy, but because the kubelet was too busy to run the probes.
┌─────────────────────────────────────┐
│ Single Node - 550 Pods │
│ │
│ System Pods: Fighting │
│ App Pods: Fighting │
│ etcd: Drowning │
│ kubelet: Overwhelmed │
│ CoreDNS: Timeout │
│ kube-proxy: Broken │
│ │
│ Status: "Everything's on fire" │
└─────────────────────────────────────┘If you're stuck on a node like this, at least carve out room for the system side. systemReserved and kubeReserved in the kubelet config take CPU and memory off the allocatable pool so app pods can't eat it:
# KubeletConfiguration (excerpt)
systemReserved:
cpu: "1"
memory: 2Gi
kubeReserved:
cpu: "1"
memory: 2GiThe numbers depend on the box. It won't save a 550-pod node, but it stops the kubelet and etcd from losing every fight.
Why It Was Hard To Stop
By the time we recognized the problem, we were trapped.
The Boiling Frog Effect
No single addition pushed the cluster over the edge. It was gradual degradation. Each new problem seemed fixable with tuning. "Just increase this limit." "Just scale that component." "Just restart those pods."
Nobody wanted to admit we'd crossed the point of no return because that meant a major architectural overhaul.
Migration Costs
Moving to a multi-node cluster meant:
- Redesigning networking
- Implementing proper resource allocation
- Migrating stateful workloads
- Coordinating downtime across multiple teams
- Potentially weeks of work
The business pressure was constant: "It's working, why spend time fixing it?"
Except it wasn't working. It was barely surviving.
The Documentation Gap
Here's something that surprised me: there's very little online about how single-node clusters fail at this scale.
The limit itself is documented. The docs say 110 pods per node and plan your cluster around that. What isn't documented is what breaks, and in what order, once you go past it. Troubleshooting guides don't cover "what happens when you push a single node to 550 pods" because nobody expects anyone to do that.
We were in uncharted territory with almost no community knowledge to reference.
The Warning Signs We Ignored
Looking back, the red flags were everywhere:
1. DNS timeouts that "resolved themselves"
Transient DNS failures are never "just transient." They're symptoms of capacity problems.
2. Increasing restart frequency
When pods need more frequent restarts to "fix issues," that's not fixing, that's masking.
3. Deployment slowdowns
When a deployment that used to take 30 seconds starts taking 5 minutes, the cluster is telling you it's overloaded.
4. Node resource utilization above 80%
Sustained high utilization isn't efficiency. It's no headroom.
5. etcd database size growth
A multi-gigabyte etcd database on a single-node cluster is a disaster waiting to happen.
6. The "just one more" pattern
When every request is "just add one more small thing," and nobody's tracking the aggregate, you're on the slope.
What We Learned
Set Hard Limits Early
Single-node clusters should have enforced pod limits. Not soft suggestions. Hard limits.
The funny part is that the kubelet already ships with one: 110. The limit that matters is the one you don't raise without a design review. If we'd set a 100-pod limit from day one and treated it as policy, the conversation would have been different. "We need to add more services" would have forced "then we need to redesign the infrastructure," not "sure, there's still technically room."
Per-team caps help too, so one namespace can't quietly take the whole node:
apiVersion: v1
kind: ResourceQuota
metadata:
name: pod-cap
namespace: dev-alice
spec:
hard:
pods: "20"With per-developer namespaces alone adding 150 pods, a quota like this on each one would have made the growth visible at the first "can I get more?" request.
"It's Working" Isn't Enough
The cluster was technically functional at 550 pods. Services were running. Most requests succeeded.
But operational quality was terrible:
- Deployments were nerve-wracking
- Debugging was nearly impossible
- Every change risked cascading failures
- On-call was exhausting
Infrastructure shouldn't just work. It should work reliably, predictably, and without constant intervention.
Track The Trajectory
We should have been graphing pod count over time with projected growth. A simple trend line would have shown the problem months before it became critical.
Week 1: 25 pods
Week 12: 60 pods
Week 24: 215 pods ← Should have triggered action here
Week 36: 420 pods ← Definitely should have acted here
Week 48: 550 pods ← Too lateArchitecture Triggers
Define architectural inflection points upfront:
- Over 50 pods: Add monitoring and capacity planning
- Over 100 pods: Evaluate multi-node migration
- Over 150 pods: Multi-node is mandatory
These should be organization policies, not suggestions.
Technical Debt Compounds
Every week we delayed the migration, more services needed moving, more teams depended on the current setup, more workarounds lived only in people's heads, and the resistance to change grew. The interest compounds, and eventually it's all you can afford to pay.
How To Avoid This
For New Clusters
Single-node Kubernetes is fine for:
- Learning and development
- Truly small workloads (sub-30 pods)
- Time-limited POCs
Single-node Kubernetes is dangerous for:
- Production workloads
- Anything expected to grow
- Multi-team environments
- Long-term infrastructure
If you're starting with a single node because "we'll add nodes later when we need them," ask yourself: who will make that call and when?
For Existing Clusters
If you're reading this because you're already on the slope, here are the breakpoints:
Under 100 pods: You have time. Start planning migration now before it becomes urgent.
100-200 pods: You're in the danger zone. Migrations take time. Start immediately. (And if you're past 110, someone already raised maxPods. Find out who and why.)
Over 200 pods: You're in crisis territory even if everything seems fine. This is your last chance to migrate on your terms instead of during an outage.
Over 300 pods: Stop adding services. Freeze the environment and execute an emergency migration.
Visibility Tools
Quick manual checks:
# Pod count, and what the kubelet will allow
kubectl get pods --all-namespaces --no-headers | wc -l
kubectl get node <node> -o jsonpath='{.status.capacity.pods}'
# etcd health and size
etcdctl endpoint health
etcdctl endpoint status --write-out=table
# Connection tracking
sysctl net.netfilter.nf_conntrack_count net.netfilter.nf_conntrack_max
# Node pressure
kubectl top nodesManual checks get forgotten, so put them in Prometheus. These metrics exist out of the box with the kubelet, etcd, and node_exporter:
# Pods running on the node
kubelet_running_pods
# etcd DB size, alert well before the 2 GB default quota
etcd_mvcc_db_total_size_in_bytes > 1.6e9
# Conntrack usage above 80%
node_nf_conntrack_entries / node_nf_conntrack_entries_limit > 0.8Alert when:
- Pod count increases 20% in a month
- etcd database exceeds 2GB
- Connection tracking exceeds 80% capacity
- Node CPU/memory sustained above 70%
The Eventual Outcome
We eventually migrated. It took three weeks of planning and a weekend cutover. We moved to a proper multi-node cluster with resource quotas, proper monitoring, and architectural review processes for new services.
The migration was painful. Services broke in unexpected ways. Teams discovered hidden dependencies. We burned a lot of coffee and midnight oil.
But the cluster that emerged was sustainable. Deployments were fast again. DNS worked reliably. etcd was healthy. The on-call burden dropped dramatically.
Most importantly: when someone asks "can we add one more service," we now have a process that evaluates impact before automatically saying yes.
The TL;DR
- A stock kubelet stops at 110 pods per node. Raising
maxPodsis an architecture decision, not a config tweak - No single addition causes the problem. It's the accumulated pressure that breaks things
- The failure modes past the limit (DNS, conntrack, etcd, kubelet starvation) are poorly documented and hard to troubleshoot
- Warning signs like DNS timeouts, slow deployments, and resource pressure should trigger architectural review
- Set hard pod limits on single-node clusters and define migration triggers upfront
- The cost of migration only increases with time. Act early
The Real Lesson
This isn't really a story about Kubernetes. The infrastructure didn't fail because of one bad decision. It failed because of hundreds of small decisions that individually seemed fine.
Sometimes the right answer to "can we add one more thing?" is "no, not until we fix the foundation."
That's a hard conversation to have. But it's a lot easier than the one you'll have when the cluster finally breaks under its own weight.
A note on how this was written: I used AI to help with phrasing and structure. The tone, the opinions, the war stories, the code, and everything else here are mine.