Deployments

Challenge

Use kubectl to

  • Create a deployment called lab2
    • image ‘sirfragalot/docker-demo:dcus’
    • one pod
  • Scale up to 5 pods
  • Scale back down to 1 pod
  • Rolling update to use image nginx instead (tracking changes)
  • View the revision history
  • Roll back to the previous image
  • View the deployment image

Expand here to see the solution

Challenge

Use kubectl to

  • Create a deployment called deployme using image busybox with 3 replicas and command sleep 3600.
  • Update the deployment called deployme using image ubuntu

Expand here to see the solution

It is bad practice not to specify the image tag (as it will default to ’latest’). It is best practice is to specify the image tag