You can attach existing Kubernetes clusters to the Management Cluster. After attaching the cluster, you can use the UI to examine and manage this cluster. The following procedure shows how to attach an existing Azure Kubernetes Service (AKS) cluster.
Before you Begin
This procedure requires the following items and configurations:
A fully configured and running Azure AKS cluster with administrative privileges.
The current version DKP Enterprise is installed on your cluster.
Ensure you have installed kubectl in your Management cluster.
This procedure assumes you have an existing and spun up Azure AKS cluster(s) with administrative privileges. Refer to the Azure AKS for setup and configuration information.
Attach AKS Clusters
Ensure that the KUBECONFIG environment variable is set to the Management cluster before attaching by running:
This process produces a file in your current working directory called kommander-cluster-admin-config. The contents of this file are used in Kommander to attach the cluster. Before importing this configuration, verify the kubeconfig file can access the cluster:
CODE
kubectl --kubeconfig $(pwd)/kommander-cluster-admin-config get all --all-namespaces
Finalize attaching your cluster from the UI
Now that you have kubeconfig, go to the DKP UI and follow these steps below:
From the top menu bar, select your target workspace.
On the Dashboard page, select the Add Cluster option in the Actions dropdown menu at the top right.
Select Attach Cluster.
Select the No additional networking restrictions card. Alternatively, if you must use network restrictions, stop following the steps below, and see the instructions on the page Attach a cluster WITH network restrictions.
Upload the kubeconfig file you created in the previous section (or copy its contents) into the Cluster Configuration section.
The Cluster Name field automatically populates with the name of the cluster in the kubeconfig. You can edit this field with the name you want for your cluster.
Add labels to classify your cluster as needed.
Select Create to attach your cluster.
If a cluster has limited resources to deploy all the federated platform services, it will fail to stay attached in the DKP UI. If this happens, ensure your system has sufficient resources for all pods.