Dears,
I am very new to Kubernetes and I'm currently working on the update process of my services (traefik, prometheus, ...). I want to avoid the compulsive real-time updates that may lead to bugs or crash. I am used to keep the control about what need to be updated and what does not.
So far, I understood that Kubernetes provides the field spec.updateStrategy.type
with 2 possible values:
RollingUpdate
: permanent auto-updateOnDelete
: auto-update after the manual deletion of a pod
I am surprised to not find the same steps than with apt
Debian tool: when I use apt update; apt upgrade
, I get a list of what will be updated and I choose what I want to be updated.
When I came to Kubernetes, I imagined updates would allow to keep this two-steps spirit, something like :
- Execute a command to compare the current docker images that are deployed on the cluster to the repos. This command would print the new existing version of each images.
- Execute another command to choose what will be updated.
There is no stable
, unstable
, testing
channels like Linux repositories with docker, then I have no way to make difference between the testing update and the trustworthy updates. I am affraid that RollingUpdate
would deploy each new image without distinction.
Which lead to my main question: is it completely safe to blindly trust RollingUpdate
?