In OpenShift, which resource is used to track and reference container images within the cluster?

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

In OpenShift, which resource is used to track and reference container images within the cluster?

Explanation:
OpenShift tracks container images with a dedicated resource that represents an image from a registry as a logical object inside the cluster. This resource, called an ImageStream, holds metadata, tags, and the actual image reference, enabling the cluster to watch for new image versions and trigger builds or deployments automatically. By referencing an ImageStreamTag in pods or deployments, you can decouple image storage from deployment logic and promote images across environments, while letting OpenShift manage updates when the underlying image changes. A Pod specifies the image to pull, but it does not track or manage image versions across the cluster. A ConfigMap stores configuration data, not container images. A Deployment controls how pods are created and updated, but it relies on a concrete image reference rather than representing the image itself, so it doesn't provide built-in image tracking. Therefore, the best choice is ImageStream.

OpenShift tracks container images with a dedicated resource that represents an image from a registry as a logical object inside the cluster. This resource, called an ImageStream, holds metadata, tags, and the actual image reference, enabling the cluster to watch for new image versions and trigger builds or deployments automatically. By referencing an ImageStreamTag in pods or deployments, you can decouple image storage from deployment logic and promote images across environments, while letting OpenShift manage updates when the underlying image changes.

A Pod specifies the image to pull, but it does not track or manage image versions across the cluster. A ConfigMap stores configuration data, not container images. A Deployment controls how pods are created and updated, but it relies on a concrete image reference rather than representing the image itself, so it doesn't provide built-in image tracking. Therefore, the best choice is ImageStream.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy