Make a DKP-CLI-created Cluster Managed

Make a DKP CLI cluster managed
When you create a cluster in a Workspace namespace using the DKP CLI, it does not attach automatically.
You will be able to see the new cluster in the UI while it is being provisioned. Once provisioning is completed, the status changes to Unattached, and you will be able to attach it as shown in the following section.
Manually Attach a DKP CLI Cluster to the Management Cluster
Find out the
nameof the createdCluster, so you can reference it later:CODEkubectl -n <workspace_namespace> get clustersAttach the cluster by creating a
KommanderCluster:CODEcat << EOF | kubectl apply -f - apiVersion: kommander.mesosphere.io/v1beta1 kind: KommanderCluster metadata: name: <cluster_name> namespace: <workspace_namespace> spec: kubeconfigRef: name: <cluster_name>-kubeconfig clusterRef: capiCluster: name: <cluster_name> EOF
To avoid manually attaching your cluster, you can set it up to be automatically attached by generating the cluster objects using the DKP CLI --dry-run -o yaml flags and creating a cluster as stated in the Advanced Creation of CLI Clusters guide.