You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It operates on all pods (both canary and stable) so we can't have a separate PDB for the stable/canary replicasets
My proposal is to add a 'pdb' section to the Rollout specification. Whenever the argo creates/deletes a ReplicaSet, it also creates/deletes a PDB with the same selectors (including rollouts-pod-template-hash). This way, we will have a separate PDB per ReplicaSet. Since a ReplicaSet is a built-in controller, the PDB will support both 'maxUnavailable' as well as percentages.
Use Cases
Set a PDB with 'maxUnavailable: 10%', so when a cluster scales down, no more that 10% of the pods in each ReplicaSet will be evicted at a time.
When would you use this?
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered:
The premise behind this request was wrong. We just tested a Rollout with a pdb that specified 'maxUnavailable: 10%' and the PDB worked perfectly. We even tested with separate PDBs for the 'stable' and 'canary' replicasets (by adding labels via stableMetadata and canaryMetaData) and both PDBs worked properly with 'maxUnavailable: 10%'
Summary
Currently Pod Disruption Budgets (PDBs) do not work well with Rollouts for the following reasons:
My proposal is to add a 'pdb' section to the Rollout specification. Whenever the argo creates/deletes a ReplicaSet, it also creates/deletes a PDB with the same selectors (including rollouts-pod-template-hash). This way, we will have a separate PDB per ReplicaSet. Since a ReplicaSet is a built-in controller, the PDB will support both 'maxUnavailable' as well as percentages.
Use Cases
Set a PDB with 'maxUnavailable: 10%', so when a cluster scales down, no more that 10% of the pods in each ReplicaSet will be evicted at a time.
When would you use this?
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered: