βοΈ Free practice test question from: KCNA (KCNA)
KCNA
In a Kubernetes cluster, a pod is configured with a resource request of 500m CPU and a resource limit of 1 CPU. If the node has a total of 4 CPUs available and is currently running three other pods each with a resource request of 200m CPU and a resource limit of 500m CPU, what is the maximum number of additional pods with the same configuration (500m CPU request, 1 CPU limit) that can be scheduled on this node without exceeding the CPU limits?
β Incorrect!
Calculate the total CPU limit currently used by the existing pods:
Each of the three existing pods has a CPU limit of 500m, which is equal to 0.5 CPU (since 1000m = 1 CPU).
Total CPU limit used by existing pods = 3 pods * 0.5 CPU/pod = 1.5 CPUs.
Determine the remaining CPU capacity on the node based on the limits:
The node has a total of 4 CPUs available.
Remaining CPU capacity for new pods (based on limits) = Total node CPU - CPU limit used by existing pods
Share your thoughts, provide feedback, or discuss the question and answer below. You can
also help others by answering their questions or providing additional information. Thank
you for contributing! π