To manage the microservices in your application with Tanzu Service Mesh, you must onboard the clusters where the microservices are deployed. Onboarding involves registering the cluster with Tanzu Service Mesh and installing Tanzu Service Mesh on the cluster.
During the onboarding, you must apply a YAML file to the cluster. The YAML file contains the Kubernetes configuration required for the registration of the cluster with Tanzu Service Mesh.
You also generate a security token during the onboarding. This security token is used to establish and maintain a secure connection between Tanzu Service Mesh and your cluster while it is being registered.
You must also provide the identifier for the cluster in Tanzu Service Mesh. This identifier can be different from the name of the cluster in your environment.
In your API call to onboard the cluster (see step 3), you can set a adminOwnedNamespaceManagement
parameter to specify that a cluster administrator will own the labeling of namespaces for Istio injection in the cluster. If this parameter is set, the cluster administrator will be able to manually label namespaces in the cluster using kubetcl, without Tanzu Service Mesh overriding the labeling changes. For more information about customer-mananaged namespace labeling, see Customer-Managed Namespace Labeling. With this parameter set, Tanzu Service Mesh-managed namespace inclusion rules for the cluster become unavailable in the UI. If you set the parameter and also define namespace inclusion rules for the cluster in your request, the inclusion rules will not take effect on the cluster. For more information about namespace inclusion rules, see Define Namespace Inclusions.
When the adminOwnedNamespaceManagement
parameter is set for a cluster, Tanzu Service Mesh delegates namespace labeling to the cluster administrator, so labeling for sidecar injection will be performed with kubectl. In this case, Tanzu Service Mesh no longer owns namespace labeling on the cluster and does not have visibility into the actual namespace labeling state.
If the adminOwnedNamespaceManagement
parameter is set to false
for the cluster at a later stage, Tanzu Service Mesh may not have the most up-to-date state of labels on the namespaces. Consider the following example:
A user sets
adminOwnedNamespaceManagement
totrue
for a cluster to delegate all responsibility for namespace labeling to the cluster administrator.The cluster administrator performs labeling on the cluster and sets
istio-injection=enabled
for a namespace on the cluster or removes a label that was previously set.If at a later stage the user sets
adminOwnedNamespaceManagement
tofalse
to return control over namespace labeling to Tanzu Service Mesh, the namespace inclusions list for the cluster in the Tanzu Service Mesh UI may not show the most up-to-date namespace inclusion state for Istio injection.
If the adminOwnedNamespaceManagement
parameter is set to false
, it is up to the Tanzu Service Mesh administrator to make sure that the namespaces that need to be injected with sidecars are selected and that no labels have been accidentally removed by Tanzu Service Mesh due to lack of constant visibility of the labeling state.
In a later release, a mechanism will be provided to reconcile the inclusions list when the ownership of namespace labeling is switched back and forth between Tanzu Service Mesh and the cluster administrator.
Prerequisites
Verify that the following prerequisites are met:
Your environment meets the requirements listed in Tanzu Service Mesh Hardware and Software Requirements.
You have an API token and an access code to authenticate your requests to the Tanzu Service Mesh API. You must use the access code in the csp-auth-token header in your requests. For information about generating an API token and getting an access code, see Authentication with the Tanzu Service Mesh REST API.
Procedure
Results
The cluster is onboarded. Tanzu Service Mesh also starts monitoring the services in the cluster and collecting infrastructure and service metrics (such as number of nodes and services, requests per second, latency, and CPU usage). The cluster appears in the Tanzu Service Mesh Console user interface with the display name you specified. You can view summary information about the cluster's infrastructure, a topology graph of the services in the cluster, and key metrics on the Home page of the Tanzu Service Mesh Console user interface. For more information, see View the Summary Infrastructure and Service Information in Getting Started with Tanzu Service Mesh.