Skip to content

Node Resources

Nodes have CPU, memory, and storage resources that are allocated to pods based on their requests.

CPU4 / 8 cores
Memory12 / 16 Gi

Mental Model

Node resources are like a hotel's rooms and amenities. Each guest (pod) requests certain rooms and amenities. The hotel manager (scheduler) tries to accommodate all guests while respecting their requests.

YAML Example

apiVersion: v1
kind: Pod
spec:
  containers:
  - name: app
    image: myapp
    resources:
      requests:
        cpu: "500m"
        memory: "512Mi"
      limits:
        cpu: "1000m"
        memory: "1Gi"

Common Misconceptions

  • ✗Limits are guaranteed - FALSE: Limits are maximums, requests are guarantees
  • ✗CPU is measured in cores - TRUE: But also supports millicores (500m = 0.5 cores)
  • ✗Resources are shared equally - FALSE: Based on pod requests

Key Takeaways

  • • Nodes have CPU, memory, and storage resources that are allocated to pods based on their requests.
  • • Node resources are like a hotel's rooms and amenities. Each guest (pod) requests certain rooms and a...
  • • Check the YAML example for implementation details
  • • Be aware of the common misconceptions listed above
Kubernetes Cosmos•An interactive learning experience
Built by GLM 4.7