QuestionQ152

VerifiedKubernetes Fundamentals

Which of the following commands correctly runs an nginx deployment with 2 replicas?

Explanation

kubectl create deployment accepts the deployment alias deploy, an image through --image, and the --replicas option to set the number of replicas. The command therefore creates an nginx Deployment with two replicas.

Learn more

Community Discussion

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