If I have the following Kubernetes objects:
Deployment
withrollingUpdate.maxUnavailable
set to1
.PodDisruptionBudget
withmaxUnavailable
set to1
.HorizontalPodAutoscaler
setup to allow auto scaling.- Cluster auto-scaling is enabled.
If the cluster was under load and is in the middle of scaling up, what happens:
- During a rolling update? Do the new
Pod
's added due to the scale up use the new version of thePod
? - When a node needs to be restarted or replaced? Does the
PodDisruptionBudget
stop the restart completely? Does theHorizontalPodAutoscaler
to scale up the number of nodes before taking down another node? - When the
Pod
affinity is set to avoid placing twoPod
's from the sameDeployment
on the same node.