Kubernetes in Production: Ten Readiness Checks Before Go-Live
A cluster that runs your application is not the same as a cluster that is ready for production. Ten checks covering resources, availability, security, upgrades and observability.
- Author
- Arabian Lynx Editorial
- Published
- 3 min read
Getting an application running on Kubernetes is the easy part. Keeping it running through node failures, traffic spikes, upgrades and security reviews is where most of the engineering effort goes. These ten checks reflect the issues that most often surface in the first months of production.
1. Every container has resource requests and limits
Without requests, the scheduler cannot place pods sensibly. Without memory limits, a single leaking process can starve its neighbours. Set requests from observed usage, and enforce defaults with a LimitRange per namespace so nothing ships without them.
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
memory: 512Mi
Many teams deliberately omit CPU limits to avoid throttling, while keeping memory limits. Whatever you choose, make it a documented decision.
2. Probes reflect real health
A readiness probe should fail when the pod cannot serve traffic, for example while caches warm up. A liveness probe should only fail when restarting will actually help. Pointing both at the same endpoint that checks the database is a common cause of cascading restarts during a database incident.
3. Workloads survive the loss of a node or zone
Run at least two replicas of anything user-facing, spread them with topologySpreadConstraints across nodes and availability zones, and add a PodDisruptionBudget so maintenance never drains every replica at once.
4. Autoscaling is configured and tested
Horizontal Pod Autoscaling needs accurate requests to work. Cluster autoscaling (or Karpenter on AWS) needs headroom and sensible node group sizes. Run a load test to confirm that both scale before users notice, and that they scale back down afterwards.
5. Access follows least privilege
- Use namespaces to separate teams or applications
- Grant RBAC roles per namespace rather than cluster-wide
- Integrate cluster authentication with your identity provider
- Use workload identity (IRSA on EKS, Workload Identity on AKS) instead of static cloud credentials in pods
6. Secrets are not stored in Git
Kubernetes Secret objects are only base64-encoded. Use an external secrets manager (AWS Secrets Manager, Azure Key Vault or HashiCorp Vault) with the External Secrets Operator, or encrypt secrets in the repository with Sealed Secrets or SOPS. Enable encryption at rest for etcd.
7. Network traffic is restricted by default
By default, every pod can talk to every other pod. Apply a default-deny NetworkPolicy per namespace and open only the paths each service needs. This turns a single compromised pod from a cluster-wide problem into a contained one.
8. Images are trusted and scanned
Build from minimal base images, scan them in CI (for example with Trivy), pin images by digest in production, and use an admission controller such as OPA Gatekeeper or Kyverno to block images from unapproved registries or with critical vulnerabilities.
9. You can see what is happening
At minimum you need:
- Metrics: cluster, node and application metrics in Prometheus or a managed equivalent
- Logs: centralised, searchable and retained according to policy
- Traces: for request paths that cross services, ideally with OpenTelemetry
- Alerts: tied to user-facing symptoms (error rate, latency) rather than only to CPU usage
Define service level objectives for key services so alerts mean something.
10. You have an upgrade and recovery plan
Kubernetes minor versions reach end of support quickly. Keep a documented upgrade procedure, test it in a non-production cluster, and track deprecated APIs before each upgrade. Back up cluster state and persistent volumes (for example with Velero), and rehearse a restore.
Using this list
Go through these checks before go-live and again after any major change to the cluster. Any check you answer "no" to should become a ticket with an owner and a date.
This article is general technical guidance and does not describe a specific client engagement.
Back to insights