$ oc get routes
Kiali works with Istio to visualize your service mesh topology to provide visibility into features like circuit breakers, request rates, and more. Kiali offers insights about the mesh components at different levels, from abstract Applications to Services and Workloads. Kiali provides an interactive graph view of your Namespace in real time. It can display the interactions at several levels (applications, versions, workloads) with contextual information and charts on the selected graph node or edge.
This tutorial uses Service Mesh and the Bookinfo tutorial to demonstrate how you can use the Kiali console to view the topography and health of your service mesh.
The Bookinfo example application allows you to test your Red Hat OpenShift Service Mesh 1.0.10 installation on OpenShift Container Platform. Red Hat does not provide support for the Bookinfo application. |
The Kiali console provides visualization and observability for your Service Mesh. The Kiali console has different views that provide insights into Service Mesh components at different levels, from Applications to Services to Workloads. It also provides validation for Istio configurations.
OpenShift Container Platform 4.1 or higher installed.
Red Hat OpenShift Service Mesh 1.0.10 installed.
Kiali enabled during the installation.
Bookinfo demonstration application installed.
The installation process creates a route to access the Kiali console.
In the OpenShift Container Platform console, navigate to Networking → routes and search for the Kiali route.
Click the URL listed under Location.
The default login strategy is openshift
which means that you should be automatically logged into the Kiali console using the same user name and password as you use to access the OpenShift Container Platform console.
When you first log in you see the Overview page, which provides a quick overview of the health of the various Namespaces that are part of your Service Mesh.
Use the left navigation or click one of the Namespace icons to view your Applications, Workloads, or Services.
Run this command from the CLI to obtain the route and Kiali URL:
$ oc get routes
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD grafana grafana-openshift-operators.127.0.0.1.nip.io grafana http None istio-ingress istio-ingress-openshift-operators.127.0.0.1.nip.io istio-ingress http None istio-ingressgateway istio-ingressgateway-openshift-operators.127.0.0.1.nip.io istio-ingressgateway http None jaeger-query jaeger-query-openshift-operators.127.0.0.1.nip.io jaeger-query jaeger-query edge None kiali kiali-openshift-operators.127.0.0.1.nip.io kiali <all> None prometheus prometheus-openshift-operators.127.0.0.1.nip.io prometheus http-prometheus None tracing tracing-openshift-operators.127.0.0.1.nip.io tracing tracing edge None
Launch a browser and navigate to https://<KIALI_URL> (in the CLI output example, this is kiali-openshift-operators.127.0.0.1.nip.io
). You should see the Kiali console login screen.
Log in to the Kiali console using the user name and password that you use when logging into the OpenShift Container Platform console.
The Graph page shows a graph of microservices, which are connected by the requests going through them. On this page, you can see how Applications, Workloads, or Services interact with each other.
In the Kiali console, click Graph in the left navigation.
If necessary, select bookinfo
from the Namespace menu. The graph displays the applications in the Bookinfo application.
Click the question mark (?) under the Namespace menu to take the Graph Help Tour.
Click Done to close the Help Tour.
Click Legend in the lower left corner. Kiali displays the graph legend.
Close the Graph Legend.
Hover over the productpage Node. Note how the graph highlights only the incoming and outgoing traffic from the Node.
Click the productpage Node. Note how the details on the right side of the page change to display the productpage details.
The Applications page lets you search for and view applications, their health, and other details.
In the Kiali console, click Applications in the left navigation.
If necessary, select bookinfo
from the Namespace menu. The page displays the applications in the selected Namespace and their health.
Hover over the Health icon to view additional health details.
Click the reviews
Service to view the details for that application.
On the Applications Details page you can view more detailed health information, and drill down for further details about the three versions of the reviews
Service.
From the Application Details page you can also click tabs to view Traffic and Inbound and Outbound Metrics for the application.
The Workloads page lets you search for and view Workloads, their health, and other details.
In the Kiali console, click Workloads in the left navigation.
If necessary, select bookinfo
from the Namespace menu. The page displays the Workloads in the selected Namespace, their health, and labels.
Click the reviews-v1
Workload to view the details for that Workload.
On the Workload Details page you can view an overview of Pods and Services associated with the Workload.
From the Workload Details page you can also click tabs to view Traffic, Logs, and Inbound and Outbound Metrics for the Workload.
The Services page lets you search for and view Services, their health, and other details.
In the Kiali console, click Services in the left navigation.
If necessary, select bookinfo
from the Namespace menu. The page displays a listing of all the Services that are running in the selected Namespace and additional information about them, such as health status.
Hover over the health icon for any of the Services to view health information about the Service. A Service is considered healthy when it is online and responding to requests without errors.
Click the Reviews Service to view its details. Note that there are three different versions of this Service.
On the Services Details page you can view an overview of Workloads, virtual Services, and destination rules associated with the Service.
From the Services Details page you can also click tabs to view Traffic, Inbound Metrics, and Traces for the Service.
Click the Actions menu. From here you can perform the following actions:
Create Weighted Routing
Create Matching Routing
Suspend Traffic
Delete ALL Traffic Routing
Click the name of one of the Services to view additional details about that specific version of the Service.
The Istio Config page lets you view all of the currently running configurations to your Service Mesh, such as Circuit Breakers, Destination Rules, Fault Injection, Gateways, routes, route Rules, and Virtual Services.
In the Kiali console, click Istio Config in the left navigation.
If necessary, select bookinfo
from the Namespace menu. The page displays a listing of configurations running in the selected Namespace and validation status.
Click one of the configurations to view additional information about the configuration file.