QuestionQ9Verified/DevOps AutomationCopy linkReport a problemAsk AstroTutorSave questionHow can a deployment named nodejs-deployment be scaled to two replicas?Akubectl set replicas deployment nodejs-deployment --replicas=2Bkubectl resize deployment nodejs-deployment --replicas=2Ckubectl adjust deployment nodejs-deployment --replicas=2Dkubectl scale deployment nodejs-deployment --replicas=2Show AnswerAnswerExplanationkubectl scale sets the desired replica count for a Deployment. Specifying deployment nodejs-deployment --replicas=2 changes that Deployment’s desired size to two replicas.Learn morekubectl scale | KubernetesShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion