Kubernetes Production Best Practices (Detailed List)
In this guide, you will learn six key areas to plan before you run applications on Kubernetes in production.
In enterprise projects, teams test every application before it reaches production. They run functional tests in staging and performance tests for the expected load.
However, these tests cover only the situations the team planned for. Production brings situations nobody planned. For example, traffic goes above the expected load, or two events happen at the same time.
This is where production readiness matters. Production readiness means you prepare your application and cluster for real production conditions, not only for your test cases.
According to the 2025 CNCF Annual Cloud Native Survey 82% of container users run Kubernetes in production. In 2023, this number was 66%. So running Kubernetes in production is now common. But running it reliably still needs careful planning.
We'll cover six important areas to consider:
- High Availability
- Resource Requests and Limits
- Kubernetes Security
- Health Checks and Safe Deployments
- Monitoring and Autoscaling
- Backup and Disaster Recovery
Let's see how each of these helps build a more reliable production environment.
1 . High Availability in Kubernetes
Running three replicas might look like enough protection. But what happens if Kubernetes schedules all three Pods on the same worker node?
One node failure can take down the entire application.
You need to plan high availability at four levels.
Cluster Level
The control plane manages the cluster. If it becomes unavailable, existing workloads may continue running, but you cannot reliably deploy, scale, or reschedule workloads.
- Managed services such as EKS, GKE, and AKS manage control plane availability.
- For self-managed clusters, use multiple control plane nodes.
- Run an etcd cluster with three or five members to tolerate failures.
The following diagram shows a high-availability Kubernetes control plane architecture.

Node Level
Worker nodes can fail unexpectedly or become unavailable during maintenance.
Use PodDisruptionBudgets (PDBs) to protect workloads during voluntary disruptions, such as node drains. Combine them with node auto-repair and replacement where supported.
Availability Zone Level
A complete availability zone can become unavailable. Spread worker nodes and application replicas across multiple zones so the application can continue running if one zone fails.
Pod Level
Use multiple replicas with topology spread constraints or pod anti-affinity. These help Kubernetes distribute Pods across different nodes and zones.
A real-world example: In January 2019, Moonlight went offline when all three web application replicas landed on one node, which failed. Pod anti-affinity fixed the issue.
Three replicas do not automatically mean high availability. Their placement matters too.
2 . Kubernetes Resource Requests and Limits
Your application can now survive a node failure. But when the sale begins and traffic increases, response times start climbing again. One possible reason is incorrect resource allocation.
Kubernetes uses resource requests and limits to manage CPU and memory:
- Requests tell the scheduler how much CPU and memory a container needs.
- Limits define the maximum resources a container can use.
For example:
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
memory: 512Mi
cpu: 250mThe right values depend on the type of application:
- Web and API services: Set CPU and memory requests based on normal usage. Keep enough memory headroom for traffic spikes. CPU limits are optional.
- Databases: Allocate sufficient CPU and memory, and avoid memory limits that are too close to normal usage.
- Batch jobs: Set realistic requests and a memory limit. Leaving CPU unrestricted allows jobs to use spare CPU.
- Java applications: Leave enough memory outside the JVM heap for other processes and overhead.
Why is this important?
Datadog's 2020 report found that 49% of containers used less than 30% of their requested CPU. Oversized requests waste node capacity, while limits that are too low can cause CPU throttling or OOMKilled containers.
Kubernetes also assigns Pods a Quality of Service (QoS) class based on their resource settings: BestEffort, Burstable, or Guaranteed. These classes influence which Pods are evicted first when a node runs low on resources.
Buffer experienced CPU throttling on its main API. After changing its resource configuration, the website responded 22 times faster.
Read how they did it
3 . Kubernetes Cluster Security
The application is now stable, but what happens if one of its Pods gets compromised?
A frontend Pod should not automatically have access to every service in the cluster. Apply security at multiple layers.
Kubernetes Native Security
Kubernetes provides built-in features to control access and workload behavior.
- RBAC: Controls what users and service accounts can do through the Kubernetes API. Follow the principle of least privilege.
- NetworkPolicies: Restrict communication between Pods. For example, allow the frontend to reach the backend without giving it direct access to the database.
- Pod Security Admission: Enforces Pod Security Standards such as Baseline and Restricted to prevent unsafe Pod configurations.
- Secrets Management: Kubernetes Secrets use base64 encoding by default, not encryption. Enable encryption at rest and restrict access through RBAC.
Third-Party Security Tools
For additional policy enforcement and security checks, consider:
- Kyverno: Kubernetes-native policy management using YAML.
- OPA Gatekeeper: Policy enforcement using the Rego language.
- Kube-bench: Checks cluster configurations against CIS Kubernetes Benchmark recommendations.
Red Hat's 2024 survey of 600 professionals reported that 89% of organizations had experienced at least one container or Kubernetes security incident in a year.
The following diagram shows the Kyverno admission webhook workflow within Kubernetes.

Explore more about: Kubernetes Native Admission Policies and the Kube-bench Guide.
4 . Health Checks and Safe Deployments
Security is in place, but every new release introduces another risk.
Imagine a new version of the application starts successfully but needs another 30 seconds to connect to the database. Without proper health checks, Kubernetes might send traffic before the application is ready.
Kubernetes provides three probes, and each has a different responsibility.
| Probe | What it checks | What happens when it fails |
|---|---|---|
| Startup | Has the application finished starting? | The container is restarted if startup keeps failing |
| Readiness | Is the application ready for traffic? | The Pod is removed from Service endpoints |
| Liveness | Is the application still running properly? | The container is restarted |
For applications that take longer to start, a startup probe prevents readiness and liveness checks from running too early.
See how all three probes are configured in a Java app deployment.
Health checks also work together with rolling updates.
For example:
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1Here, maxUnavailable: 0 ensures existing available Pods are not removed before replacements are ready, while maxSurge: 1 allows Kubernetes to create one additional Pod during the update.
Kubernetes waits for the new Pod's readiness probe to pass before proceeding with the replacement.
Check deployment status and roll back if needed
After starting a deployment, don't assume everything is working just because the Pods were created. Check whether the rollout has completed successfully:
kubectl rollout status deployment/shop-frontendIf the new version introduces problems, you can return to the previous revision:
kubectl rollout undo deployment/shop-frontendImportant: Keep liveness checks simple. Avoid making them depend on external services such as databases. Use readiness checks to control whether a Pod should receive traffic.
For more details, see our Kubernetes Deployment Tutorial.
5 . Monitoring and Autoscaling
The new release is stable. Then another promotional campaign brings thousands of users.
Manually increasing replicas is not a reliable scaling strategy. Kubernetes provides different autoscaling options
Kubernetes Autoscaling Options
Kubernetes provides different autoscaling options, each serving a different purpose:
- HPA: Automatically increases or decreases the number of Pod replicas.
- VPA: Adjusts CPU and memory requests based on actual usage.
- Cluster Autoscaler: Adds or removes nodes from configured node groups when capacity changes. Follow our EKS Cluster Autoscaler guide.
- Karpenter: Automatically provisions suitable nodes based on pending Pod requirements.
Pending. Node autoscaling is also required to provide additional capacity.Monitoring Cluster
Autoscaling manages changing workloads, but monitoring helps you understand whether your application and infrastructure are healthy.
A common monitoring stack uses Prometheus to collect metrics, Grafana to visualize them, and Alertmanager to send alerts.
Focus on these important signals:
- Application latency and error rates
- Pod restarts and
OOMKilledevents - Pods stuck in
Pending - Nodes becoming
NotReady - CPU throttling
The following image shows the Prometheus monitoring and alerting architecture, including service discovery and Pushgateway integration.

Learn more: Prometheus architecture and Prometheus setup on Kubernetes.
Alert on node-provisioning failures. They may look like infrastructure warnings at first, but can become application outages.
In 2023, a change deleted an IAM instance profile that Karpenter needed at Stytch. Hours later, all worker nodes failed, and the API was down for 14 minutes. Early warnings had been marked low urgency.
Read the post-mortem to learn more.
6 . Backup and Disaster Recovery
Your application is now highly available, secure, monitored and scalable.
But what happens if someone accidentally deletes the cluster or loses important application data?
High availability cannot protect against every failure. You need a backup strategy that covers both Kubernetes resources and application data.
What Should You Back Up?
- etcd snapshots: For self-managed clusters, etcd snapshots preserve Kubernetes objects such as Deployments, Services, ConfigMaps and Secrets.
- Velero: For managed clusters such as EKS, GKE and AKS, Velero backs up Kubernetes resources and supports persistent volume backups.
- Database backups: Use database-specific backup tools to protect application records and ensure consistent recovery.
Test Your Recovery Plan
Taking backups is only half the job. You also need to make sure they can be restored.
- Schedule regular backups and store them separately from the cluster.
- Restore backups into a test environment.
- Verify that both Kubernetes resources and application data are available.
- Measure recovery time and update your recovery procedure.

Learn more: How to Back Up and Restore an EKS Cluster Using Velero.
InfluxData once deleted a production environment by mistake because of an Argo CD change. They recovered by restoring the Kubernetes objects and reloading data from object storage.
Read how they did it