Skip to content

Instantly share code, notes, and snippets.

Kubernetes Best Practices for Pods Resizing (setting right resources)

Resources of User Pods

  • Memory Request = [Appropriate value based on the usage over last 30 days or more identified using Prometheus and Grafana]
  • CPU Request = [Appropriate value based on the usage over last 30 days or more identified using Prometheus and Grafana]
  • Memory Limit = Memory Request
    • Only set Memory Limit higher than the Memory Request for those pods which rarely have intense spikes.
      • Those pods can be identified based on the trend over time using Prometheus and Grafana and/or the nature of the pod.
  • CPU Limit = None