Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Updating a Deployment

Sumit Rawal answered on May 6, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Restart deployment
  • rolling deployments
  • set image deployment
  • Trying out a sample deployment
  • Create the Deployment with the following commands:
  • Wait for the deployments to be up and running
  • Rolling Deployments
  • Deployment Approach : Rolling with Additional Batch
  • Continuously Deployment and Integration
  • Deployment options
  • Deployment process
  • Triggering your deployment
  • Triggering your deployment
  • Triggering your deployment
  • Triggering your deployment
  • Configure IstioOperator Deployment
  • On-cluster deployment
  • Getting Started with Deploying Releases
  • Which of the following command(s) can be used to update a Deployment?
  • Updating the Jenkins deployment definition#
  • Updating multiple deployments#

  • Updating a Deployment

    0

    Follow the steps given below to update your Deployment:

    1. Let's update the nginx Pods to use the nginx:1.16.1 image instead of the nginx:1.14.2 image

    kubectl set image deployment.v1.apps/ubuntu-deployment ubuntu=ubuntu:16.04

    Also, change the echo statement in the command

    2. See the rollout status, run: kubectl rollout status deployment/ubuntu-deployment

    Run kubectl get rs to see that the Deployment updated the Pods by creating a new ReplicaSet and scaling it

    up to 3 replicas, as well as scaling down the old ReplicaSet to 0 replicas 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 06 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.