QuestionQ54Verified/703.2 Basic Kubernetes OperationsCopy linkReport a problemAsk AstroTutorSave questionGiven this Kubernetes Deployment: Which command scales the application to five containers?Akubectl edit deployment/myapp replicas=5Bkubectl deployment myapp replicas=5Ckubectl scale deployment/myapp --replicasDkubectl replicate deployment/myapp +3Ekubectl clone deployment/myapp 3Show AnswerAnswerExplanationThe kubectl command-line tool provides a dedicated 'scale' subcommand for changing the desired replica count of a resource such as a Deployment, invoked as 'kubectl scale deployment/<name> --replicas=<N>'; none of the other listed forms (edit with inline key=value, a bare 'deployment' verb, 'replicate', or 'clone') are valid kubectl commands.Learn morekubectl Reference Docs - scaleShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion