Which resource kind is used in the example to override the replica count for an overlay deployment?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

Which resource kind is used in the example to override the replica count for an overlay deployment?

Explanation:
Replica count is controlled by the replicas field on controllers that manage pod replicas. In overlay deployments, the patch targets a Deployment because Deployment is the standard stateless controller that exposes spec.replicas for scaling the number of pods. By patching the Deployment in the overlay, you directly override how many pods should run. A Service doesn’t manage pod replicas, it’s just a network surface to reach pods; a Pod represents a single instance and isn’t scalable on its own; StatefulSet can manage replicas too, but overlays commonly demonstrate changing the Deployment’s replica count for straightforward environment-specific scaling.

Replica count is controlled by the replicas field on controllers that manage pod replicas. In overlay deployments, the patch targets a Deployment because Deployment is the standard stateless controller that exposes spec.replicas for scaling the number of pods. By patching the Deployment in the overlay, you directly override how many pods should run. A Service doesn’t manage pod replicas, it’s just a network surface to reach pods; a Pod represents a single instance and isn’t scalable on its own; StatefulSet can manage replicas too, but overlays commonly demonstrate changing the Deployment’s replica count for straightforward environment-specific scaling.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy