Hi,
When Kubernetes scale down or if we stopped/ terminated a POD, how can we gauarantee that its current functions (tasks in progress) will not be affected? For example, If we are writing file in a pod and while being in the middle of this task, the pod needs to terminate/ stopped? what is the scenario here? Another example to demonstrate my inquiry: kubectl scale replicaset my-new-replica-set --replicas=2 (it was 5 as an example). Three pods will be terminated in this case. Will the termination wait until those three pods finish their tasks?
Another point, In case we have multiple pods for RedisDB or any DBengine, how to ensure that all DB instances are in sync (syncronized)?
Thank you.