Scaling Down the Management Cluster

In order to scale down the management cluster, a manual PV migration steps is required.

If the nodes to be scaled down host SeaweedFS or Consul deployments, the PVs attached to them must be migrated to other nodes in the cluster before scaling down.

Prerequisites

  • Identify which pods are on nodes being removed
  • Identify target nodes for migration
  • Ensure SSH/rsync access between nodes

Migration Process (Per Pod)

  1. Get current state
Copy
  1. Prepare new node directory :
Copy
  1. Rsync data from old to new node :
Copy
  1. Save PV configuration :
Copy
  1. Edit PV YAML
Copy

Changes needed:

  • Update nodeAffinity IP: old-node-ipnew-node-ip
  • Remove from metadata: creationTimestamp, resourceVersion, uid
  • Remove entire status: section
  1. Delete PV and PVC :
Copy
  1. Recreate PV only :
Copy
  1. Delete pod - StatefulSet will recreate PVC and bind :
Copy
  1. Verify :
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard