Juicefs CSI Driver separated JuiceFS client from CSI Driver since v0.10.0, CSI Driver upgrade will not interrupt existing PVs.
Compared with v0.12.0, v0.13.0 updated the ClusterRole of CSI node & controller, and cannot directly update the image.
-
modify your
k8s.yaml
to v0.13.0, then runkubectl apply -f k8s.yaml
. -
Alternatively, if JuiceFS CSI driver is installed using Helm, you can also use Helm to upgrade it.
helm repo update helm upgrade juicefs-csi-driver juicefs-csi-driver/juicefs-csi-driver -n kube-system -f ./values.yaml
Upgrade of CSI Driver requires restart the DaemonSet, which has all the JuiceFS client running inside. The restart will cause all PVs become unavailable, so we need to stop all the application pod first.
- Stop all pods using this driver.
- Upgrade driver:
- If you're using
latest
tag, simple runkubectl rollout restart -f k8s.yaml
and make surejuicefs-csi-controller
andjuicefs-csi-node
pods are restarted. - If you have pinned to a specific version, modify your
k8s.yaml
to a newer version, then runkubectl apply -f k8s.yaml
. - Alternatively, if JuiceFS CSI driver is installed using Helm, you can also use Helm to upgrade it.
- If you're using
- Start all the application pods.
If you want to upgrade CSI Driver from v0.9.0 to v0.10.0+, follow "How to upgrade CSI Driver from v0.9.0 to v0.10.0+".
For versions prior to v0.10.0, you can upgrade only the JuiceFS client without upgrading the CSI Driver. For details, refer to this document.
Visit Docker Hub for more versions.