Skip to content

Commit

Permalink
fix: add maxUnavailable for cloud provider upgrade
Browse files Browse the repository at this point in the history
Changing the value to 1 from the default 25% remedies the deployment
update stuck problem in single-node clusters due to pod antiaffinity.

Signed-off-by: Zespre Chang <zespre.chang@suse.com>
  • Loading branch information
starbops authored and bk201 committed Apr 23, 2024
1 parent 7ec5dc3 commit 9cd25bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/harvester-cloud-provider/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ spec:
selector:
matchLabels:
{{- include "harvester-cloud-provider.selectorLabels" . | nindent 6 }}
strategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
Expand Down

0 comments on commit 9cd25bd

Please sign in to comment.