Connect a Cluster
A new cluster can be connected to Loft through the UI or CLI:
- UI
- CLI
- Go to the Clusters view using the menu on the left.
- Click on the button at the very right.
- In the drawer that appears from the right, give your cluster a name in the Display Name field. Optionally give a name for the underlying kubernetes resource in the Kubernetes Name (ID), or leave it empty to have it autogenerated for you. Then click on the button.
- In this section, please provide a valid kubeconfig for your cluster and then click on the button.
- Please wait until Loft installs the agent in your connected cluster.
- Once successful, you may create a space / virtual cluster in the newly connected cluster by using the displayed Loft CLI command.
- Click on the button to go to the Clusters view.
When connecting a cluster from the Loft CLI, you will need to provide a name for the cluster. This name will be used for the Cluster resource that gets created in Kubernetes. Optionally, you can use the display-name
flag to specify a name for this cluster, when it gets displayed under the Clusters view in Loft.
loft connect cluster cluster-name --display-name [display-name]