Kubernetes in Production: Lessons Learned

Real-world experiences running Kubernetes at scale. The good, the bad, and the things I wish I knew earlier.

A
Abhishek Sharma
· Feb 5, 2024 ·
15 min read
Share: HN

The Reality of Kubernetes

Kubernetes is powerful but complex. Before adopting it, ensure your team has the bandwidth to learn and maintain it.

Resource Requests and Limits

Always set both requests and limits. Without them, a single pod can starve other workloads on the same node.

resources:
  requests:
    memory: "128Mi"
    cpu: "250m"
  limits:
    memory: "256Mi"
    cpu: "500m"

Health Probes

Configure liveness and readiness probes carefully. A misconfigured liveness probe can cause infinite restart loops under high load.

What I Wish I'd Known

  • Start with managed Kubernetes (EKS, GKE, AKS)
  • Use Helm for managing releases
  • Invest in monitoring from day one (Prometheus + Grafana)

Found this useful?

Share it with others who might benefit.

A

Abhishek Sharma

Senior Backend Developer specializing in scalable systems, distributed architecture, and high-performance APIs. Writing about the craft of building software that lasts.

Want to work together?

I'm always open to discussing new projects and interesting challenges.

Get in touch
Book a call
Chat on WhatsApp