In this lesson, we’ll configure your service mesh to accept external traffic and see it in action through Kiali. To enable external communication, we need to create a Gateway for our application. The Gateway configures the mesh to allow traffic from outside the cluster, and this configuration is essential for proper external access. We will use the configuration file located atDocumentation Index
Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
Use this file to discover all available pages before exploring further.
networking/bookinfo-gateway.yaml. This file not only defines the Gateway but also includes a Virtual Service definition which we will discuss in later sections.
Step 1: Applying the Gateway Configuration
Apply the Gateway configuration by running the following commands:Step 2: Configuring Cluster Access
Next, determine the IP address where your local cluster is accessible. Export this IP to a variable to streamline subsequent commands. Depending on your setup, you might run a command similar to the example below and verify that the variable is correctly set:Remember to confirm that your variable for the IP address is properly exported before proceeding.
istio-ingress-gateway service to ensure proper configuration.
Step 3: Testing the Product Page
Now, test your setup by accessing the product page using cURL. Run the following command to display the HTML content in your terminal:Step 4: Generating Continuous Traffic
To facilitate easier experimentation, you can generate continuous traffic by running a simple loop that sends repeated cURL requests to the product page. Execute the command below; it will repeatedly call the product page without cluttering your terminal output:Be sure to copy this command carefully to avoid issues with backslashes or unexpected formatting.
Step 5: Monitoring Traffic with Kiali
Open the Kiali dashboard and allow a few moments for the data to be collected and visualized. If needed, adjust the time interval and refresh the graph. The dashboard will clearly display live traffic along with healthy applications, workloads, and services, indicating that traffic is flowing into your mesh.Step 6: Reviewing Applied Istio Configurations
Let’s review the Istio configurations defined in thebookinfo-gateway.yaml file. This file contains the configurations for both the Gateway and the Virtual Service – these are the only Istio settings applied at this point. More details regarding these configurations will be discussed in later lessons.