01-Import existing Harvester clusters in Rancher

This feature have been deprecated which already enhanced and merge to setup from harvester settings Please refer to 02-Integrate to Rancher from Harvester settings to test this feature

  1. Login rancher dashboard
  2. Navigate to Virtual Management Page
  3. Click import existing
  4. Copy the curl command image.png
  5. SSH to harvester master node (user: rancher)
  6. Execute the curl command to import harvester to rancher curl --insecure -sfL https://192.168.50.82/v3/import/{identifier}.yaml | kubectl apply -f -
  7. Run sudo chmod 775 /etc/rancher/rke2/rke2.yaml to solve the permission denied error
  8. Run curl command again, you should see the following successful import message
    namespace/cattle-system configured
    serviceaccount/cattle created
    clusterrolebinding.rbac.authorization.k8s.io/cattle-admin-binding created
    secret/cattle-credentials-413137f created
    clusterrole.rbac.authorization.k8s.io/cattle-admin created
    deployment.apps/cattle-cluster-agent created
    service/cattle-cluster-agent created
    
  9. Check import status in Virtualization Management page on Rancher

Expected Results

  1. Harvester successfully imported on virtualization management page image.png
  2. Can access Harvester from Rancher dashboard
  3. Display Project/Namespaces and RBAC tab image.png