UI: Finish Attaching the Existing Cluster
How to apply the kubeconfig file to create the network tunnel to attach an existing cluster
Though the required file is now generated, you still need to apply it to create the network tunnel and complete the attachment process.
Select the Download Manifest link to download the file you generated previously.
kubectl applycommand from the user interface and paste into your terminal session, DO NOT run it yet.
Ensure you substitute the actual name of the file for the variable. Also ensure you use the
--kubeconfig=<managed_cluster_kubeconfig.conf>flag to run the command on the Attached or Managed cluster. Run the command.
:note: Running this command starts the attachment process, which may take several minutes to complete. The Cluster details page will be displayed automatically when the cluster attachment process completes.
(Optional) Select the Verify Connection to Cluster button to send a request to Kommander to refresh the connection information. You can use this option to check to see if the connection is complete, though the Cluster Details page displays automatically when the connection is complete.
After the initial connection is made, and your cluster becomes viewable as attached in the DKP UI, the attachment, federated add-ons, and platform services will still need to be completed. This may take several additional minutes. If a cluster has limited resources to deploy all the federated platform services, the installation of the federated resources will fail and the cluster may become unreachable in the DKP UI. If this happens, check whether there are any pods that are not getting the resources required.
Now you can learn how to Use the Remote Cluster (this approach uses the CLI).