Which command updates the image change trigger for the deployment config php to use the image phpns/myphp:latest for the container phpapp in namespace phpns?

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 command updates the image change trigger for the deployment config php to use the image phpns/myphp:latest for the container phpapp in namespace phpns?

Explanation:
The command updates the image change trigger on a DeploymentConfig so that the specified container will use the given image when the trigger fires. It targets the DeploymentConfig named php, sets the trigger to the image reference phpns/myphp:latest, and selects the container to update with -c phpapp. This ensures only the phpapp container’s image source is tied to phpns/myphp:latest, so when that image changes, the deployment can roll out a new revision for that container. Ensure you’re operating in the phpns namespace (or include --namespace phpns) so the command modifies the correct resource. The other options would either point to a different container, reference a misspelled image path, or use a slightly different command form, which would not update the intended container in the right DeploymentConfig.

The command updates the image change trigger on a DeploymentConfig so that the specified container will use the given image when the trigger fires. It targets the DeploymentConfig named php, sets the trigger to the image reference phpns/myphp:latest, and selects the container to update with -c phpapp. This ensures only the phpapp container’s image source is tied to phpns/myphp:latest, so when that image changes, the deployment can roll out a new revision for that container. Ensure you’re operating in the phpns namespace (or include --namespace phpns) so the command modifies the correct resource. The other options would either point to a different container, reference a misspelled image path, or use a slightly different command form, which would not update the intended container in the right DeploymentConfig.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy