Skip to content

Kubernetes

Kubernetes Resource Request/Limit Calculator

Average and peak memory/CPU usage, turned into a resources.requests/limits YAML snippet - with the common OOMKill mistake explained.

Mi
Mi
m
m
%
resources:
  requests:
    memory: "180Mi"
    cpu: "100m"
  limits:
    memory: "384Mi"
    cpu: "480m"

Requests come from average usage (what the scheduler reserves). Limits come from peak usage plus headroom (what triggers throttling or an OOMKill) - setting limits from average usage is the most common cause of surprise OOMKills under load.