Skip to content

Commit

Permalink
Set updateStrategy rolling update max unavailable to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
antas-marcin committed Apr 16, 2024
1 parent f8a8526 commit 97f9904
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .cicd/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ function check_creates_template() {
check_string_existence "--set containerSecurityContext.allowPrivilegeEscalation=false " "allowPrivilegeEscalation: false"
check_string_existence "" "imagePullPolicy: IfNotPresent"
check_setting_has_value "--set image.pullSecrets[0]=weaviate-image-pull-secret" "imagePullSecrets" "name: weaviate-image-pull-secret"
check_setting_has_value "--set updateStrategy.type=OnDelete" "updateStrategy" "type: OnDelete"
check_string_existence "--set updateStrategy.type=OnDelete" "type: OnDelete"
check_setting_has_value "--set updateStrategy.rollingUpdate.maxUnavailable=10%" "rollingUpdate" "maxUnavailable: 10%"
check_string_existence "--set priorityClassName=critical" "priorityClassName: critical"
check_string_existence "--set globalPriorityClassName=high" "priorityClassName: high"

Expand Down
5 changes: 5 additions & 0 deletions weaviate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ replicas: 1
podManagementPolicy: Parallel
updateStrategy:
type: RollingUpdate
# This setting is only available in K8s v1.24 and higher.
# Setting maxUnavailable to 100% results in removing all of the pods
# and re-creating them in parallel all at once.
# rollingUpdate:
# maxUnavailable: 100%
resources: {}
# requests:
# cpu: '500m'
Expand Down

0 comments on commit 97f9904

Please sign in to comment.