hardkubectl

Update the container image of a deployment to trigger a rolling update

command

kubectl set image deployment/DEPLOYMENT_NAME CONTAINER_NAME=IMAGE_NAME

also accepted

kubectl set image deployment/DEPLOYMENT_NAMEkubectl set image deploy/DEPLOYMENT_NAME CONTAINER_NAME=IMAGE_NAME

Test your recall — not just your reading.

Practice with interactive quiz →