Where do you specify per-container CPU and memory requests and limits?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

Where do you specify per-container CPU and memory requests and limits?

Explanation:
The per-container CPU and memory requests and limits are defined in the container's resources field inside the Pod spec. For each container, you specify a resources block with requests (the guaranteed minimum) and limits (the maximum the container may use). The scheduler uses these requests to place the Pod on a node with enough capacity, and the kubelet enforces the limits at runtime. Metadata like annotations and security policies don’t set per-container resources—the node’s total capacity is about the whole node, not individual containers, and security policies govern access and security controls rather than resource sizing. In OpenShift/Kubernetes you can also rely on LimitRange for namespace-wide defaults, but the explicit per-container values live in the containers[].resources section.

The per-container CPU and memory requests and limits are defined in the container's resources field inside the Pod spec. For each container, you specify a resources block with requests (the guaranteed minimum) and limits (the maximum the container may use). The scheduler uses these requests to place the Pod on a node with enough capacity, and the kubelet enforces the limits at runtime. Metadata like annotations and security policies don’t set per-container resources—the node’s total capacity is about the whole node, not individual containers, and security policies govern access and security controls rather than resource sizing. In OpenShift/Kubernetes you can also rely on LimitRange for namespace-wide defaults, but the explicit per-container values live in the containers[].resources section.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy