Which command links a secret to the default service account for image pulling?

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

Which command links a secret to the default service account for image pulling?

Explanation:
Linking image pull credentials to the default service account is done by attaching the secret to that SA with the purpose set to image pulling. The valid command uses the default service account, supplies the secret name, and specifies the --for flag as pull. This tells OpenShift that the secret should be used to authenticate when pulling container images for pods that run under the default service account. The other options use invalid values for the --for parameter, so they wouldn’t configure the secret for image pulling.

Linking image pull credentials to the default service account is done by attaching the secret to that SA with the purpose set to image pulling. The valid command uses the default service account, supplies the secret name, and specifies the --for flag as pull. This tells OpenShift that the secret should be used to authenticate when pulling container images for pods that run under the default service account. The other options use invalid values for the --for parameter, so they wouldn’t configure the secret for image pulling.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy