Kubernetes Production Readiness Checklist

A pre-flight checklist for running Kubernetes in production, covering resource management, security hardening, observability, deployment strategies and disaster recovery.

By VVVHQ Team ·

Taking Kubernetes to production without preparation tends to show up as pages at 3 AM. This checklist covers what teams often skip when they move from development and staging to a production cluster. Use it before go-live, and again whenever a cluster has drifted from how it was set up.

Resources and scaling

  • Every container sets CPU and memory requests. The scheduler places pods by their requests, and without them it is guessing.
  • Memory limits are set and tested. A container without one can use memory the node needs, and the node then evicts or OOM-kills other pods.
  • CPU limits are a deliberate choice. Tight CPU limits cause throttling, and many teams set accurate requests and leave CPU unlimited.
  • Requests come from measured usage, from load tests or from a few weeks of metrics. The Vertical Pod Autoscaler in recommendation mode suggests values from real usage.
resources:
  requests:
    memory: "256Mi"
    cpu: "250m"
  limits:
    memory: "512Mi"
    # CPU limit left out on purpose; decide per workload
  • Stateless services have a Horizontal Pod Autoscaler, on CPU, memory or a custom metric.
  • Production services run at least two replicas.
  • The cluster can add nodes when pods cannot be scheduled, through Cluster Autoscaler or Karpenter.
  • Pod Disruption Budgets stop node drains and upgrades from taking down too many replicas at once.
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: web-pdb
spec:
  minAvailable: "50%"
  selector:
    matchLabels:
      app: web

Health checks

  • Liveness probes restart containers that are stuck, for example deadlocked.
  • Readiness probes keep traffic away from pods that cannot serve it yet.
  • Slow-starting applications have a startup probe, so the liveness probe does not kill them during initialization.
  • Timeouts and thresholds are tuned. The default probe timeout is one second, which is short for many applications.
livenessProbe:
  httpGet:
    path: /healthz
    port: 8080
  periodSeconds: 10
  timeoutSeconds: 3
  failureThreshold: 3
readinessProbe:
  httpGet:
    path: /ready
    port: 8080
  periodSeconds: 5
  timeoutSeconds: 3
  failureThreshold: 2

A common mistake is one endpoint for both probes. Liveness should only check that the process is alive. Readiness can check that the pod can serve traffic, with its database connection up and caches warm. A liveness probe that checks the database restarts every pod when the database has a bad minute.

Networking

  • Network policies start from default-deny and allow only the traffic each service needs. They need a network plugin that enforces them, such as Calico or Cilium.
  • TLS terminates at the ingress or gateway, with certificates renewed automatically. If you run ingress-nginx, plan the move now: the project has been retired. Our ingress-nginx migration guide covers the options, including the Gateway API.
  • A service mesh such as Istio or Linkerd has been evaluated, for mutual TLS, traffic management and per-service metrics.
  • DNS resolution is tested, for internal and external names, under load.
  • Applications shut down gracefully: they handle SIGTERM, stop accepting new requests, finish the ones in flight, and do it within terminationGracePeriodSeconds.

Security

  • Containers run as non-root, with a read-only root filesystem where the application allows it.
  • No privileged containers. Drop all capabilities and add back only what is needed.
  • Production namespaces enforce the restricted Pod Security Standard through Pod Security Admission labels.
  • Secrets come from an external manager (Vault, AWS Secrets Manager or Google Secret Manager) through the External Secrets Operator or a CSI driver.
  • RBAC follows least privilege, and each workload has its own service account.
  • Images are scanned in CI before they reach the cluster, and pulled from a private registry or a pull-through cache.
securityContext:
  runAsNonRoot: true
  runAsUser: 1000
  readOnlyRootFilesystem: true
  allowPrivilegeEscalation: false
  capabilities:
    drop: ["ALL"]
  seccompProfile:
    type: RuntimeDefault

The seccompProfile line matters: the restricted standard rejects pods that do not set it.

Observability

  • Metrics are collected with Prometheus or a hosted service such as Datadog.
  • Logs go to one central system, such as Grafana Loki, Elasticsearch or CloudWatch.
  • Requests are traced across services with OpenTelemetry.
  • Each service has a dashboard with request rate, errors and duration.
  • Alerts reach the on-call engineer for crash loops, a rising 5xx rate, sustained CPU or memory saturation, and certificates close to expiry. Set the thresholds from each service's normal behaviour.

Collect node-level metrics too. For an early-stage SaaS company on EKS, a class of intermittent DNS failures kept coming back. We added an ethtool exporter on every node, next to Prometheus and Grafana, to expose NIC and kernel counters. Those counters traced the failures to connection-tracking limits on the nodes, not to CoreDNS itself. The fix was CoreDNS autoscaling, with the node exporter codified in Terraform so every new node reports the same counters.

Deployments

  • Rolling updates have maxSurge and maxUnavailable set for each service.
  • Rollback has been tested, with kubectl rollout undo or the GitOps equivalent.
  • Images are referenced by version tag or digest, never latest.
  • imagePullPolicy is IfNotPresent for immutable tags.
  • Canary or blue-green releases have been considered for the most critical services.

Storage and recovery

  • Persistent volumes use a storage class that fits the workload, and storage classes allow volume expansion.
  • Stateful workloads run as StatefulSets with a backup plan, using Velero or the provider's volume snapshots, and restores have been tested.
  • Every manifest lives in Git and is applied through Argo CD or Flux, so the cluster can be rebuilt from the repository.
  • On a self-managed control plane, etcd is backed up on a schedule and stored off the cluster. On EKS, GKE or AKS the provider runs etcd, so back up your resources and volumes instead.
  • You know how long a full rebuild takes, because you have timed one.
  • Pods spread across availability zones with topology spread constraints:
topologySpreadConstraints:
  - maxSkew: 1
    topologyKey: topology.kubernetes.io/zone
    whenUnsatisfiable: DoNotSchedule
    labelSelector:
      matchLabels:
        app: web

Cost

  • Each namespace has a resource quota, so one team cannot take the whole cluster.
  • Fault-tolerant workloads run on Spot or preemptible nodes.
  • OpenCost or Kubecost reports cost per team and per service.
  • Node sizes fit the pods. An m5.2xlarge node for pods that request 256Mi of memory is mostly paying for empty space.

If you only do five things

  1. Set requests and memory limits on every container.
  2. Configure liveness and readiness probes, separately.
  3. Run at least two replicas, with a Pod Disruption Budget.
  4. Monitor and alert on crash loops and error rates.
  5. Run containers as non-root, with read-only filesystems where possible.

If you would like a second pair of eyes before go-live, we can run this list against your cluster as a fixed-scope, read-only review that ends in a written plan of what to fix first. Ask for a readiness review.

Tags: kubernetes production, kubernetes checklist, k8s best practices, kubernetes security, kubernetes deployment