QuestionQ131Verified/Kubernetes FundamentalsCopy linkReport a problemAsk AstroTutorSave questionWhich command changes the image of an active Deployment without re-creating the resource?Akubectl edit deployment my-app my-container=my-app:v2Bkubectl replace deployment/my-app my-container=my-app:v2Ckubectl set image deployment/my-app my-container=my-app:v2Dkubectl set image deployment/my-app rollout restartShow AnswerAnswerExplanationkubectl set image updates the container image in an existing Deployment’s pod template. The Deployment controller performs its normal rollout while the Deployment resource itself remains in place.Learn morekubectl set image | KubernetesShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion