kubectl set image
The kubectl command that changes the container image of an existing workload such as a Deployment.
In more detail
Changing the image starts a new rollout of the workload. It is a quick push-model way to deploy a chosen image or digest without editing manifests.
Example
kubectl set image deployment/checkout checkout="$image"Related terms
- kubectl — The command-line tool for talking to a Kubernetes cluster's API server: creating, reading, changing and deleting objects.
- image promotion — Moving the exact same, already-tested image through environments, such as staging to production, without rebuilding it.
- Deployment — The Kubernetes object that keeps a chosen number of identical pods running and replaces them gradually when you change their template.
Taught in
- Artifact Promotion: Staging to Production — Continuous Integration & Continuous Delivery Pipelines