Layer 7 routing supports multiple capabilities, such as URI path matching and request header matching. This topic describes the preparations for implementing capabilities related to Layer 7 routing.
Prerequisites
A Service Mesh (ASM) instance of Enterprise Edition is created. For more information, see Create an ASM instance.
In the Dataplane Mode section of the Create Service Mesh page, select Enable Ambient Mesh mode.
A Container Service for Kubernetes (ACK) cluster is created and the requirements in Supported ACK clusters and configurations are met. For more information about how to create a cluster, see Create an ACK dedicated cluster or Create an ACK managed cluster.
The cluster is added to the ASM instance. For more information, see Add a cluster to an ASM instance.
You have downloaded the ASM debugging tool, istioctl, based on your operating system and platform. For more information, see Istio.
Step 1: Set the data plane mode to Ambient Mesh
Set the data plane mode of the global namespace named default to Ambient Mesh.
Log on to the ASM console. In the left-side navigation pane, choose .
On the Mesh Management page, click the name of the ASM instance. In the left-side navigation pane, choose .
On the Global Namespace page, find the default namespace and click Switch to Ambient Mesh Mode in the Dataplane Mode column. In the Submit message, click OK.
Step 2: Deploy services in the cluster on the data plane
Deploy the helloworld, sleep, HTTPBin, NGINX, or mocka services based on your business requirements.
Deploy the helloworld service
Use the following content to create a helloworld-application.yaml file.
Use kubectl to connect to the ACK cluster based on the information in the kubeconfig file, and then run the following command to deploy the helloworld service:
kubectl apply -f helloworld-application.yaml
Deploy the sleep service
Use the following content to create a sleep-application.yaml file.
Use kubectl to connect to the ACK cluster based on the information in the kubeconfig file, and then run the following command to deploy the sleep service:
kubectl apply -f sleep-application.yaml
Deploy the HTTPBin service
Use the following content to create an httpbin-application.yaml file.
Use kubectl to connect to the ACK cluster based on the information in the kubeconfig file, and then run the following command to deploy the HTTPBin service:
kubectl apply -f httpbin-application.yaml
Deploy the NGINX service
Use the following content to create an nginx.yaml file.
Use kubectl to connect to the ACK cluster based on the information in the kubeconfig file, and then run the following command to deploy the NGINX service:
kubectl apply -f nginx.yaml
Deploy the mocka service
Use the following content to create a mocka-application.yaml file.
Use kubectl to connect to the ACK cluster based on the information in the kubeconfig file, and then run the following command to deploy the mocka service:
kubectl apply -f mocka-application.yaml