Which object controls the number of pod replicas for an application in OpenShift?

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 object controls the number of pod replicas for an application in OpenShift?

Explanation:
In OpenShift, the Deployment is what controls how many pods run for an application. It defines the desired number of replicas in its spec.replicas, and the controller makes sure that exact number of pod instances are running by creating or terminating pods as needed. You can adjust this count to scale the app either by changing the replicas value (for example, via a CLI command or by editing the deployment) or by using autoscaling, but the Deployment is the resource that enforces the replica count. By contrast, a Service handles networking to pods, a Route exposes the service outside the cluster, and a ConfigMap stores configuration data—none of these directly set the number of pod replicas.

In OpenShift, the Deployment is what controls how many pods run for an application. It defines the desired number of replicas in its spec.replicas, and the controller makes sure that exact number of pod instances are running by creating or terminating pods as needed. You can adjust this count to scale the app either by changing the replicas value (for example, via a CLI command or by editing the deployment) or by using autoscaling, but the Deployment is the resource that enforces the replica count. By contrast, a Service handles networking to pods, a Route exposes the service outside the cluster, and a ConfigMap stores configuration data—none of these directly set the number of pod replicas.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy