QuestionQ158

VerifiedKubernetes Fundamentals

A Pod called my-app must be created to run a simple nginx container. Which kubectl command should be used?

Explanation

kubectl run NAME --image=image creates and runs the specified container image in a Pod. Using my-app as the name and nginx as the image satisfies the required Pod name and container image.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!