DEV Community

Cover image for 5 things you should really know about K8S resources
dejanualex
dejanualex

Posted on

5 things you should really know about K8S resources

One core part of resource management for Pods and Containers are Requests and Limits for CPU and Memory.

Therefore without any further ado here are the five things you should really know about Kubernetes resources:

  1. Requests and limits are on a per-container basis.
  2. Requests are what the container is guaranteed to get and Limits are what the container is allowed to use, and it is restricted to go above limits.
  3. Pods are scheduled based on CPU and Memory requests.
  4. Removing CPU Limits it okay as long as the requests are pretty close to the expected load.
  5. CPU is considered a “compressible ” resource, whereas memory is not since K8s cannot throttle memory usage.

For a more detailed presentation you can check Kubernetes capacity management — resources and metrics.

Top comments (0)