Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Rolling Update Deployment Instructions

  1. Deploy the Deployment and Service by running the following command:

    kubectl create -f ./ --save-config --record

  2. Run kubectl get all and notice that 4 Pods, 1 Deployment, and 1 ReplicaSet have successfully been deployed.

  3. Open a separate command window and run one of the following scripts based on your OS to call into the nginx Pods:

    Windows (open a PowerShell window):

    ./curl-loop.ps1

    Mac

    sh curl-loop.sh

  4. Change the image version in nginx.deployment.yml to the one shown in the comment right next to it. Save the file.

  5. Run the following command to apply the new Deployment:

    kubectl apply -f nginx.deployment.yml --record

  6. Go back and check the curl commands being made by the script and you should see no interuption in the service. This demonstrates a Rolling Deployment in action.

  7. Check the Deployment status by running the following:

    kubectl rollout status deployment my-nginx