34-Hot plug and unplug volumes in RKE1 cluster

  • Related task: #1396 Integration Cloud Provider for RKE1 with Rancher

Environment Setup

  1. Docker install rancher v2.6.3
  2. Create one node harvester with enough resource

Verify Steps

  1. Environment preparation as above steps

  2. Import harvester to rancher from harvester settings

  3. Create cloud credential

  4. Create RKE1 node template image

  5. Provision a RKE1 cluster, check the Harvester as cloud provider image

  6. Access RKE1 cluster

  7. Open charts in Apps & Market page

  8. Install harvester cloud provider and CSI driver

  9. Make sure cloud provider installed complete

  10. Switch to All-namespace and check installed apps page

  11. create a new repo and set url to https://charts.bitnami.com/bitnami image

  12. Find and deploy wordpress in chart image

  13. Open Global settings in Rancher dashboard

  14. Change the UI-offline preferred to Remote image

  15. Click ctrl+R to refresh page

  16. Access RKE1 cluster

  17. Open Services in service discovery

  18. Edit the config of wordpress load balancer service

  19. Open the Add-on config in load balancer page and save image

  20. Check wordpress deployment

  21. Check Storage Class page

  22. Check Persistent Volume in storage

  23. Open Storage -> PersistentVolumeClaims

  24. Open Storage -> PersistentVolume

  25. Remove wordpress in InstalledApps

Expected Results

  1. Check harvester storageClassess exists image
  2. Check wordpress related persistent volume claims bounded image
  3. Check wordpress related persistent volume bounded image
  4. Check related persistentvolumeclaims and persistent volume can be deleted accordingly