Skip to content

Commit

Permalink
minor tweak to sequence of application of max-pods setting during upg…
Browse files Browse the repository at this point in the history
…rade
  • Loading branch information
ibrokethecloud authored and bk201 committed May 18, 2023
1 parent aa39c03 commit b90f8de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package/upgrade/upgrade_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ command_post_drain() {
wait_repo
detect_repo

# update max-pods to 200 #
set_max_pods
# A post-drain signal from Rancher doesn't mean RKE2 agent/server is already patched and restarted
# Let's wait until the RKE2 settled.
wait_rke2_upgrade
Expand All @@ -574,8 +576,6 @@ command_post_drain() {
kubectl taint node $HARVESTER_UPGRADE_NODE_NAME kubevirt.io/drain- || true

convert_nodenetwork_to_vlanconfig
# update max-pods to 200 #
set_max_pods

upgrade_os
}
Expand Down Expand Up @@ -607,6 +607,8 @@ command_single_node_upgrade() {
kubectl scale --replicas=0 deployment/fleet-agent -n cattle-fleet-local-system
kubectl rollout status deployment fleet-agent -n cattle-fleet-local-system

# update max-pods to 200 #
set_max_pods
# Upgarde RKE2
upgrade_rke2

Expand All @@ -615,8 +617,6 @@ command_single_node_upgrade() {

convert_nodenetwork_to_vlanconfig

# update max-pods to 200 #
set_max_pods
# the fleet-agent will be scaled up via the pkg/controller/upgrade/upgrade_controller.go

# Upgrade OS
Expand Down

0 comments on commit b90f8de

Please sign in to comment.