QuestionQ152Verified/Kubernetes FundamentalsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following commands correctly runs an nginx deployment with 2 replicas?Akubectl run deploy nginx --image=nginx --replicas=2Bkubectl create deploy nginx --image=nginx --replicas=2Ckubectl create nginx deployment --image=nginx –replicas=2Dkubectl create deploy nginx --image=nginx --count=2Show AnswerAnswerExplanationkubectl 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 morekubectl create deploymentShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion