After you have created a credential to access your AWS EKS account, you can bring the existing clusters in your account under the management of VMware Tanzu Platform for Kubernetes.
If you have an existing EKS cluster on which you want to deploy a Space, you can add the cluster to Tanzu Platform. The following procedure provides the steps to add an existing EKS cluster and specify the cluster group with which to associate the cluster. When you associate the cluster to a cluster group, all the resources associated with the cluster group are also deployed to the cluster.
You need the following to add an existing EKS cluster:
An EKS role ARN. If you don’t have role ARN, you can create the role when you go through the steps in Tanzu Platform hub to add the EKS cluster.
NoteThe instructions to generate the role ARN are only provided in Tanzu Platform hub.
In Tanzu Platform for Kubernetes:
If you are using the Tanzu CLI:
NoteTo make installing subsequent updates easier, use the package manager method to install the Tanzu CLI, rather than installing from a binary release.
The EKS cluster should have managed Nodegroups.
You can add an existing EKS cluster using Tanzu Platform hub or the tanzu
CLI.
Run the following tanzu
CLI command to add an existing EKS cluster:
tanzu operations pekscluster manage <name of the cluster> -c <credential name> -r <region> -g <cluster group> -a <roleArn>
Run the following command to remove the cluster from Tanzu Platform management:
tanzu operations pekscluster unmanage <name of the cluster> -c <credential name> -r <region> -g <cluster group>
After you add the cluster, it is listed on the Clusters tab of the Kubernetes Clusters page. It can take up to five minutes before you can perform actions on the newly added EKS cluster.