Kubernetes Pod CPU Resource Based on Instance Type

2/17/2021

Suppose for a pod i define the resources as below

resources:
  requests:
    memory: 500Mi
    cpu: 500m
  limits:
    memory: 1000Mi
    cpu: 1000m

This means i would be requiring minimum of 1/2 cpu core (or 1/2 vCPU). In cloud (AWS) we have different ec2 families. if we create a cluster using C4 or R4 types of instances does the performance change. Do we need to baseline the CPU usage based on the instance family on which we are going to run the pod.

-- Snehasish Das
amazon-ec2
kubernetes
kubernetes-pod

0 Answers