Accessing Bookinfo
This guide will walk you through accessing Bookinfo via the Istio Ingress Gateway and verifying its functionality. The Ingress Gateway in this guide uses the classic Istio VirtualService API.
Before you begin, please ensure:
- The Bookinfo sample application has been deployed.
- A service mesh has been created.
- You will need platform administrator privileges. Please ensure your account has the platform administrator role assigned.
To simplify the setup process, this tutorial uses the NodePort method to access the Ingress Gateway, eliminating the need for a LoadBalancer. Access to the Bookinfo application will be through the node IP and node port.
TOC
Step 1: Deploying the Ingress Gateway
-
Creating Projects and Namespaces Navigate to the Project Management page, click Create Project, name it
platform, and select the cluster where the Bookinfo application resides. In the project details, under the left navigation panel, click Namespaces and create a namespace namedplatform-gateway. -
Deploying the Ingress Gateway Go to Platform Management, navigate to Service Mesh > Gateways, and click Deploy Gateway. Fill in the gateway parameters:
-
Basic Info: Name it
public-ingressgw, gateway type isIngress Gateway, gateway type selection isShared, leave other parameters as default. -
Deployment Configuration: Select namespace
platform-gateway, node label selectingress:true, leave other parameters as default. -
Network Configuration: Select
NodePort, set HTTP protocol host port to30665, HTTPS host port to30666. -
Check Port Availability: Execute the following command to ensure the ports are not occupied:
-
Step 2: Creating Gateway Configuration
- Navigate to the gateway details page, switch to the Gateway configuration tab, and click Create Gateway Configuration.
- Name it
public-ingressgw-gateway, selectHTTPport80, set Host to*, and click create.
Step 3: Creating Virtual Services
- Switch to the Virtual Services tab, click Create Routing configuration.
- Name it
public-ingressgw-vs, select namespaceplatform-gateway, route destination selectNamespace: demo-dev,Service: productpage,Port: 9080.
Testing Ingress Traffic
-
Obtain
GATEWAY_IP_PORT:-
First, find the node IP address where the Ingress Gateway is located by executing the following command:
-
Use the node IP combined with port
30665to formGATEWAY_IP_PORT, for example,192.168.130.0:30665.
-
-
Execute the following command to verify the Ingress Gateway is functioning correctly:
-
Expected output should resemble: