Resources & Limits

Never deploy without setting resource requests & limits:

resources:

requests:

memory: “128Mi”

cpu: “250m”

limits:

memory: “256Mi”

cpu: “500m”

Without limits:

1. One pod can consume all cluster resources

2. Other pods get starved and crash

  1. Your whole cluster goes down

With limits:

  1. Fair resource distribution

  2. Stable cluster performance