Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
K3s 本地路径供应器与持久化卷管理
/var/lib/rancher/k3s/storage/
infra
worker-03
apps
monitoring
# 1. 停止原节点应用,确保文件不被占用 kubectl scale deployment <app-name> --replicas=0 # 2. 从源节点执行物理同步 rsync -avz --progress /var/lib/rancher/k3s/storage/<pvc-dir> root@target-node:/var/lib/rancher/k3s/storage/ # 3. 修改 PV 内容,更新节点亲和性 (NodeAffinity) # 4. 恢复应用副本数 kubectl scale deployment <app-name> --replicas=1