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:
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.
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 named platform-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 is Ingress Gateway
, gateway type selection is Shared
, leave other parameters as default.
Deployment Configuration: Select namespace platform-gateway
, node label select ingress:true
, leave other parameters as default.
Network Configuration: Select NodePort
, set HTTP protocol host port to 30665
, HTTPS host port to 30666
.
Check Port Availability: Execute the following command to ensure the ports are not occupied:
public-ingressgw-gateway
, select HTTP
port 80
, set Host to *
, and click create.public-ingressgw-vs
, select namespace platform-gateway
, route destination select Namespace: demo-dev
, Service: productpage
, Port: 9080
.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 30665
to form GATEWAY_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: