There is a K8S cluster, and most of our Deployments are just updating image's version, but sometimes we'd like to update some parts of Deployment configuration as well. Our Deployment config doesn't include images' tags.
For updating image version kubectl set image
seems me the best option. As for updating Deployment configuration and image together, I see a few ways:
kubectl set image ...
[but there are two Deployments]What do you suggest? TIA, Vitaly
Honestly, the thing is up to you that what you like.
kubectl set image ...
.kubectl patch ...
command then don't do it too.kubectl edit ...
command or kubectl apply -f path/to/your_deployment_configuration_file
.Edit the deployment yam file and update the image. Use - - record option with deployment command to track the deployment history.