Prerequisite: External network on VLAN
- Install Rancher in a VM using Docker method on Harvester cluster using the external VLAN
- Login rancher dashboard
- Navigate to Virtual Management Page
- Click import existing
- Copy the curl command
- SSH to harvester master node (user: rancher)
- Execute the curl command to import harvester to rancher
curl --insecure -sfL https://192.168.50.82/v3/import/{identifier}.yaml | kubectl apply -f -
- Run
sudo chmod 775 /etc/rancher/rke2/rke2.yaml
to solve the permission denied error - 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
- Check import status in Virtualization Management page on Rancher
Expected Results
- Harvester successfully imported on virtualization management page
- Can access Harvester from Rancher dashboard
- Display
Project/Namespaces
andRBAC
tab