Skip to content

Commit 4b19cbd

Browse files
authored
Update k8s-best-practices-platform-upgrade.adoc
1 parent 477630e commit 4b19cbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/k8s-best-practices-platform-upgrade.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ In clusters larger than the example cluster, the `maxUnavailable` for the worker
3131
For an application to stay healthy during this process, if they are stateful at all, they should specify a statefulset or replicaset, kubernetes by default will attempt to schedule the set members across multiple nodes to give additional resiliency. In order to prevent kubernetes from stealing too many nodes out from under an application, an application that has a minimum number of pods that need to be running must specify a pod disruption budget. Pod disruption budgets allow an application to tell kubernetes that it needs N number of pods of said microservice alive at any given time. For example, a small stateful database may need 2 out of three pods available at any given time, so that application should set a pod disruption budget with a minavailable set to a value of 2. This will allow the scheduler to know that it should not take the second pod out of a set of 3 down at any given time during the series of node reboots.
3232

3333
.Workload requirement
34+
3435
[IMPORTANT]
3536
====
3637
Applications may not set the pod disruption budget to minUnavailable equal to the number of pods in the deployment/replicaset or maxUnavailable pods to zero, operations will change your pod disruption budget to proceed with an upgrade at the risk of your application.

0 commit comments

Comments
 (0)