Kubernetes · Arazzo Workflow
Kubernetes Roll Out a New Container Image
Version 1.0.0
Read a deployment, replace it with an updated image, then watch the rollout and its events.
View Spec
View on GitHub
AutomationCloud NativeCNCFContainersDeploymentOpen SourceOrchestrationScalingArazzoWorkflows
Provider
Workflows
rolling-update-deployment
Update a deployment's container image and observe the resulting rollout.
Fetches the deployment, replaces it with an updated pod template that carries the new image, re-reads the deployment for rollout progress, and lists namespace events to explain a rollout that has not converged.
1
readDeployment
getNamespacedDeployment
Read the deployment to confirm it exists and capture its resourceVersion so the replace can be rejected if another writer changed it first.
2
applyNewImage
replaceNamespacedDeployment
Replace the deployment with the new image. Changing the pod template spec triggers a rolling update governed by the deployment's update strategy.
3
observeRollout
getNamespacedDeployment
Read the deployment back to compare observedGeneration against the new generation and to report updated, ready, and available replica counts.
4
readRolloutEvents
listNamespacedEvents
List namespace events so a rollout that has not converged reports a cause such as an image pull failure or insufficient node capacity.