To create a global namespace with the Tanzu Service Mesh CLI, you must describe the configuration of the global namespace in a YAML file and then apply the configuration file.
You must describe the different configuration details of a global namespace in the following manifests:
Global namespace manifest. Contains the general details and namespace selection criteria about the global namespace.
Public service manifest. Contains general configuration details about a public service in the global namespace. For a GSLB-enabled public service, the public service manifest also contains the GSLB configuration parameters.
Public service route manifest. Defines the name of the internal service associated with the public service and the port of the internal service.
API discovery manifest. Contains the configuration details that are required to observe and monitor API traffic between the services in the GNS and configure API security policies.
PII discovery manifest. Contains the configuration details that are required to observe and monitor data in flight between services in the GNS and configure data security policies.
You must retrieve the templates of these manifests from the Tanzu Service Mesh API, combine them in a single YAML manifest file called global namespace configuration file, and provide values for the fields in the manifests.
Although the simplest approach is to have all of these manifests combined in a single file, it is not necessary. For example, if a different team manages the GSLB interaction, you can separate the public service GSLB configuration into a separate manifest file. However, all of these YAML manifest files must exist for a global namespace to function properly.
Prerequisites
Be familiar with the concept of global namespace in Tanzu Service Service Mesh.
Be familiar with the concept of public service in Tanzu Service Mesh.
Be familiar with the concept of API discovery in Tanzu Service Mesh.
Be familiar with the concept of personal identifiable information (PII) discovery in Tanzu Service Mesh.
Be familiar with the Kubernetes YAML manifest format.
The current public service configuration requires that a health check ID and an external DNS ID exist and be referred to in the PublicService manifest, which is part of the GlobalNamespace manifest. Before applying the public service, you must add the health check ID and the DNS ID to the PublicService manifest. For information on how to get a health check ID and an external DNS ID, see Get a Health Check ID for a Public Namespace Configuration and Get an External DNS ID for a Public Namespace Configuration.
Procedure
Results
For information about how to apply the global namespace configuration YAML file to your Tanzu Service Mesh tenant, see Apply a Configuration to Tanzu Service Mesh SaaS Using the CLI.
What to do next
Add the global namespace configuration file to the Git repository where you maintain all your manifest files.