0
votes

Context: We have multiple processes that are watching the same feature flag to determine whether a restart is required, and trying to determine if we need to ensure that exactly one process calls kubectl rollout restart.

Suppose n processes simultaneously call kubectl rollout restart on the same deployment, for n > 3. Which of the following behaviors is expected to happen?

  1. The deployment goes down entirely as the overlapping restarts cause different pods to be deleted.
  2. All the restarts eventually run, but they run serially.
  3. Some number of restarts m, where m < n will run serially.
  4. Something else.

I have searched around but haven't found documentation about this behavior, so a pointer would be greatly appreciated.