Upgrade QingCloud CSI

Upgrade QingCloud CSI after Upgrading KubeSphere

Currently QingCloud CSI cannot be upgraded by KubeKey. You can run the following command to upgrade the CSI manually after you upgrade KubeSphere:

  1. git clone https://github.com/yunify/qingcloud-csi.git
  1. cd qingcloud-csi/
  1. git checkout v1.2.0
  1. kubectl delete -f deploy/disk/kubernetes/releases/qingcloud-csi-disk-v1.1.1.yaml
  1. kubectl delete sc csi-qingcloud
  1. helm repo add test https://charts.kubesphere.io/test
  1. helm install test/csi-qingcloud --name-template csi-qingcloud --namespace kube-system \
  2. --set config.qy_access_key_id=KEY,config.qy_secret_access_key=SECRET,config.zone=ZONE,sc.type=2

Wait until the CSI controller and DaemonSet are up and running.

  1. $ kubectl get po -n kube-system | grep csi
  2. csi-qingcloud-controller-56979d46cb-qk9ck 5/5 Running 0 24h
  3. csi-qingcloud-node-4s8n5 2/2 Running 0 24h
  4. csi-qingcloud-node-65dqn 2/2 Running 0 24h
  5. csi-qingcloud-node-khk49 2/2 Running 0 24h
  6. csi-qingcloud-node-nz9q9 2/2 Running 0 24h
  7. csi-qingcloud-node-pxr56 2/2 Running 0 24h
  8. csi-qingcloud-node-whqhk 2/2 Running 0 24h

Run the following command to check whether the CSI image version is 1.2.x:

  1. $ kubectl get po -n kube-system csi-qingcloud-controller-56979d46cb-qk9ck -ojson | jq '.spec.containers[].image' | grep qingcloud
  2. "csiplugin/csi-qingcloud:v1.2.0-rc.4"