You can attach Kubernetes clusters to Tanzu Platform. Attaching clusters to Tanzu Platform allows you to monitor them as part of your infrastructure and to use them as Space Targets.
As part of the process to attach a Kubernetes cluster, you download a YAML file that deploys the Tanzu agents and configures the connection from the cluster back to Tanzu Platform. Each file is unique to each cluster. You cannot reuse the same YAML file for multiple clustera. You must download the file provided in the attachment workflow.
Before you begin
-
Verify that your target cluster meets the following minimum resource requirements so that you can install the Tanzu agents on the cluster. The amount of required resources scales based on the number of resources in your cluster. Please note the maximum limit.
Resource Minimum Limit CPU 1 3 Memory 100Mi 1Gi -
If you are adding a self-managed cluster, the cluster must not have more than 10 nodes.
- For Application management in Tanzu Platform, you must configure your Spring applications with actuator and micrometer libraries. See Configure your Spring applications for application management in Tanzu Platform.
Attach a Kubernetes cluster
You can attach Kubernetes clusters to bring them under Tanzu Platform management.
- In the Tanzu Platform UI header, use the project selector to select the project in which you want to add a cluster.
- Go to Infrastructure > Kubernetes Clusters
- Click Add Kubernetes Cluster.
- Click Add self-managed cluster and Next
- Enter a unique Name that you can use to identify the cluster in Tanzu Platform.
- Select if you want the cluster to be used for Spaces or not.
- Select the Cluster Group for the cluster.
- Optionally add labels to your cluster.
- Copy and paste the
kubectl
command in a shell to install the Tanzu agents on your cluster. - Click View Kubernetes Cluster.
- As the Tanzu agents are synced to the cluster and install, the cluster overview page will show more information about your cluster.
What you can do now
- You can monitor the attached clusters. See Monitoring Kubernetes resources in Tanzu Platform.
- You can also finish creating an application environment and deploy an application to a Space.
Content feedback and comments