In a workflow that shares a private image stream, which action is performed first to enable cross-project access to the image?

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 a workflow that shares a private image stream, which action is performed first to enable cross-project access to the image?

Explanation:
Cross-project image sharing in OpenShift relies on RBAC to grant pull rights. To let workloads in the consuming project pull a private image from the image stream in the source project, you grant the system:image-puller role to the consuming project’s service accounts for the source image stream’s namespace. This permission is what enables the actual pull of the image across projects, and it must be in place before any pod can start using the image. Creating a secret for a regtoken isn’t needed for internal OpenShift image streams, switching projects isn’t required to grant the access, and importing the image into the target project would duplicate the image rather than enable ongoing cross-project access. So, granting pull access to the consuming project’s service accounts is the correct first step.

Cross-project image sharing in OpenShift relies on RBAC to grant pull rights. To let workloads in the consuming project pull a private image from the image stream in the source project, you grant the system:image-puller role to the consuming project’s service accounts for the source image stream’s namespace. This permission is what enables the actual pull of the image across projects, and it must be in place before any pod can start using the image. Creating a secret for a regtoken isn’t needed for internal OpenShift image streams, switching projects isn’t required to grant the access, and importing the image into the target project would duplicate the image rather than enable ongoing cross-project access. So, granting pull access to the consuming project’s service accounts is the correct first step.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy