A cluster is a collection of cloud resources, such as hosts, that are used to run your applications. You can create an application cluster and add authorization information on the Cluster Management page. This allows Service Mesh to manage the cluster and enable service mesh capabilities.
Procedure
Log on to the Service Mesh console.
In the navigation pane on the left, click Cluster Management.
On the Cluster Management page, click Create Cluster and configure the following parameters:
Create a container cluster
Parameter
Description
Cluster Name
Enter a name for the cluster.
The name can contain digits, letters, hyphens (-), and periods (.). It must start and end with a digit or a letter.
Cluster Type
Select Container.
Specify namespace
Choose whether to specify a namespace. If you specify a namespace, the service mesh feature is enabled only for that namespace. Otherwise, the service mesh feature is enabled for all namespaces in the cluster.
Click Add Specified Namespace to specify multiple namespaces. If a specified namespace does not exist, it is automatically created.
Cluster KubeConfig
Enter the content of the
kube_config.yamlfile obtained from the Kubernetes cluster configuration file.The system converts the content of the
kube_config.yamlconfiguration file to JSON format for storage.Notes (Optional)
Enter a description for the cluster.
Advanced Configuration
Configure the advanced options for the cluster, including the following:
Data center metadata (dc): Enter the name of the data center (DC) where the cluster is located.
Data center metadata is used in multi-data center deployments to identify the data center of the current cluster. This enables advanced policies such as local data center routing priority.
Region metadata (region): Enter the region of the cluster.
Region metadata is used in multi-region deployments, such as a two-region three-data-center architecture, to identify the city of the current cluster. This enables advanced policies such as local region routing priority.
Custom metadata: Click Add More Metadata, and enter a key and a value.
Cluster metadata is added as global environment variables to all sidecars in the cluster. You can add multiple pieces of cluster metadata.
Custom metadata is rendered into the environment variables of the sidecar.
Create a virtual machine cluster
Parameter
Description
Cluster Name
Enter a name for the cluster.
The name can contain digits, letters, hyphens (-), and periods (.). It must start and end with a digit or a letter.
Cluster Type
Select Virtual Machine.
VM Authorization
Click Add VM Authorization Information, and then enter the virtual machine information, including the VM IP address, port, Secure Shell (SSH) username, and password.
Two entry methods are supported: Form Entry and Formatted Entry.
Form Entry: Enter the IP address, port, username, and password information in the table.
Formatted Entry: Enter the virtual machine information in the
IP:port username passwordformat. For example:10.0.0.1:80 admin admin.
Click Add Metadata to add environment variables for the virtual machine.
Notes (Optional)
Enter a description for the cluster.
Advanced Configuration
Configure the advanced options for the cluster, including the following:
Data center metadata (dc): Enter the name of the data center (DC) where the cluster is located.
Data center metadata is used in multi-data center deployments to identify the data center of the current cluster. This enables advanced policies such as local data center routing priority.
Region metadata (region): Enter the region of the cluster.
Region metadata is used in multi-region deployments, such as a two-region three-data-center architecture, to identify the city of the current cluster. This enables advanced policies such as local region routing priority.
Custom metadata: Click Add More Metadata, and enter a key and a value.
Cluster metadata is added as global environment variables to all sidecars in the cluster. You can add multiple pieces of cluster metadata.
Custom metadata is rendered into the environment variables of the sidecar.
Click OK.
You are returned to the cluster list, which displays all the clusters that you have created.
The Enable Mesh column shows the status of the service mesh. You can click the status to configure it. If the service mesh is already enabled for a cluster, you must disable it before you can delete the cluster.