zh-translation: /docs/tasks/observability/kiali/index.md (#5580)

This commit is contained in:
Arun Fung 2019-11-27 21:16:13 +08:00 committed by Istio Automation
parent 759428eedd
commit 6dbb503700
1 changed files with 98 additions and 137 deletions

View File

@ -1,58 +1,53 @@
---
title: Visualizing Your Mesh
description: This task shows you how to visualize your services within an Istio mesh.
title: 网络可视化
description: 此任务向您展示如何在 Istio 网格中可视化服务。
weight: 49
keywords: [telemetry,visualization]
aliases:
- /zh/docs/tasks/telemetry/kiali/
---
This task shows you how to visualize different aspects of your Istio mesh.
此任务向您展示如何可视化 Istio 网格的不同方面。
As part of this task, you install the [Kiali](https://www.kiali.io) add-on
and use the web-based graphical user interface to view service graphs of
the mesh and your Istio configuration objects. Lastly, you use the Kiali
Public API to generate graph data in the form of consumable JSON.
作为此任务的一部分,您将安装 [Kiali](https://www.kiali.io) 附加组件,并使用基于 Web 的图形用户界面来查看网格和 Istio 配置对象的服务图。
最后,您使用 Kiali Public API 返回的 JSON 数据生成图形数据。
{{< idea >}}
This task does not cover all of the features provided by Kiali.
To learn about the full set of features it supports,
see the [Kiali website](http://kiali.io/documentation/features/).
这个任务并不包括 Kiali 提供的所有特性。要了解它所支持的全部功能,请查看 [Kiali 官网](http://kiali.io/documentation/features/)。
{{< /idea >}}
This task uses the [Bookinfo](/zh/docs/examples/bookinfo/) sample application as the example throughout.
此任务始终将 [Bookinfo](/zh/docs/examples/bookinfo/) 示例应用程序作为示例。
## Before you begin
## 开始之前{#before-you-begin}
{{< tip >}}
The following instructions assume you have installed `istioctl` and will use it to install Kiali.
To install Kiali without `istioctl`, follow the [Kiali installation instructions](https://www.kiali.io/documentation/getting-started/).
以下说明假设您已安装过 `istioctl` 并使用它来安装 Kiali。
不使用 `istioctl` 来安装 Kiali, 请参考 [Kiali 安装说明](https://www.kiali.io/documentation/getting-started/)。
{{< /tip >}}
### Create a secret
### 创建 secret{#create-a-secret}
{{< tip >}}
If you plan on installing Kiali using the Istio demo profile as described in the [Istio Quick Start Installation Steps](/zh/docs/setup/getting-started/) then a default secret will be created for you with a username of `admin` and passphrase of `admin`. You can therefore skip this section.
如果您打算按照 [Istio 快速入门](/zh/docs/setup/getting-started/) 说明使用 Istio 演示配置文件安装 Kiali则会为您创建一个默认 secret用户名为 `admin` ,密码为 `admin`。 因此,您可以跳过此部分。
{{< /tip >}}
Create a secret in your Istio namespace with the credentials that you use to
authenticate to Kiali.
在 Istio 命名空间中创建一个 Secret作为 Kiali 的身份验证凭据。
First, define the credentials you want to use as the Kiali username and passphrase:
首先,定义要用作 Kiali 用户名和密码的凭据:
{{< text bash >}}
$ KIALI_USERNAME=$(read -p 'Kiali Username: ' uval && echo -n $uval | base64)
$ KIALI_PASSPHRASE=$(read -sp 'Kiali Passphrase: ' pval && echo -n $pval | base64)
{{< /text >}}
If you are using the Z Shell, `zsh`, use the following to define the credentials:
如果使用的是 Z Shell `zsh`,请使用以下内容定义凭据:
{{< text bash >}}
$ KIALI_USERNAME=$(read '?Kiali Username: ' uval && echo -n $uval | base64)
$ KIALI_PASSPHRASE=$(read -s "?Kiali Passphrase: " pval && echo -n $pval | base64)
{{< /text >}}
To create a secret, run the following commands:
运行以下命令创建 secret
{{< text bash >}}
$ NAMESPACE=istio-system
@ -75,21 +70,17 @@ data:
EOF
{{< /text >}}
### Install via `istioctl`
### 通过 `istioctl` 安装{#install-Via-`istioctl`}
Once you create the Kiali secret, follow
[the install instructions](/zh/docs/setup/install/istioctl/) to install Kiali via `istioctl`.
For example:
创建 Kiali secret 后,请参照 `istioctl` [安装说明](/zh/docs/setup/install/istioctl/) 来安装 Kiali。
例如:
{{< text bash >}}
$ istioctl manifest apply --set values.kiali.enabled=true
{{< /text >}}
{{< idea >}}
This task does not discuss Jaeger and Grafana. If
you already installed them in your cluster and you want to see how Kiali
integrates with them, you must pass additional arguments to the
`istioctl` command, for example:
该任务不讨论 Jaeger 和 Grafana。 如果已经在集群中安装了它们,并且想了解 Kiali 如何与它们集成,则必须将其他参数传递给 `helm` 命令,例如:
{{< text bash >}}
$ istioctl manifest apply \
@ -100,12 +91,12 @@ $ istioctl manifest apply \
{{< /idea >}}
Once you install Istio and Kiali, deploy the [Bookinfo](/zh/docs/examples/bookinfo/) sample application.
安装 Istio 和 Kiali 后,部署 [Bookinfo](/zh/docs/examples/bookinfo/) 示例应用程序。
### Running on OpenShift
### 运行在 OpenShift{#running-on-OpenShift}
When Kiali runs on OpenShift it needs access to some OpenShift specific resources in order to function properly,
which can be done using the following commands after Kiali has been installed:
当 Kiali 在 OpenShift 上运行时,它需要访问一些 OpenShift 特定的资源才能正常运行,
在安装 Kiali 之后,可以使用以下命令完成此操作:
{{< text bash >}}
$ oc patch clusterrole kiali -p '[{"op":"add", "path":"/rules/-", "value":{"apiGroups":["apps.openshift.io"], "resources":["deploymentconfigs"],"verbs": ["get", "list", "watch"]}}]' --type json
@ -113,171 +104,150 @@ $ oc patch clusterrole kiali -p '[{"op":"add", "path":"/rules/-", "value":{"apiG
$ oc patch clusterrole kiali -p '[{"op":"add", "path":"/rules/-", "value":{"apiGroups":["route.openshift.io"], "resources":["routes"],"verbs": ["get"]}}]' --type json
{{< /text >}}
## Generating a service graph
## 生成服务图{#generating-a-service-graph}
1. To verify the service is running in your cluster, run the following command:
1. 要验证服务是否在您的群集中运行,请运行以下命令:
{{< text bash >}}
$ kubectl -n istio-system get svc kiali
{{< /text >}}
1. To determine the Bookinfo URL, follow the instructions to determine the [Bookinfo ingress `GATEWAY_URL`](/zh/docs/examples/bookinfo/#determine-the-ingress-IP-and-port).
1. 要确定 Bookinfo URL请按照说明确定 [Bookinfo ingress `GATEWAY_URL`](/zh/docs/examples/bookinfo/#determine-the-ingress-IP-and-port).
1. To send traffic to the mesh, you have three options
1. 要将流量发送到网格,您有三种选择
* Visit `http://$GATEWAY_URL/productpage` in your web browser
* 在浏览器中访问 `http://$GATEWAY_URL/productpage`
* Use the following command multiple times:
* 多次使用以下命令:
{{< text bash >}}
$ curl http://$GATEWAY_URL/productpage
{{< /text >}}
* If you installed the `watch` command in your system, send requests continually with:
* 如果您在系统中安装了 `watch` 命令,请通过以下方式连续发送请求:
{{< text bash >}}
$ watch -n 1 curl -o /dev/null -s -w %{http_code} $GATEWAY_URL/productpage
{{< /text >}}
1. To open the Kiali UI, execute the following command in your Kubernetes environment:
1. 要打开 Kiali UI请在您的 Kubernetes 环境中执行以下命令:
{{< text bash >}}
$ istioctl dashboard kiali
{{< /text >}}
1. To log into the Kiali UI, go to the Kiali login screen and enter the username and passphrase stored in the Kiali secret.
1. 要登录 Kiali UI请到 Kiali 登录界面,然后输入存储在 Kiali secret 中的用户名和密码。
1. View the overview of your mesh in the **Overview** page that appears immediately after you log in.
The **Overview** page displays all the namespaces that have services in your mesh.
The following screenshot shows a similar page:
1. 登录后立即显示的 **Overview** 页面中查看网格的概述。**Overview** 页面显示了网格中具有服务的所有名称空间。以下屏幕截图显示了类似的页面:
{{< image width="75%" link="./kiali-overview.png" caption="Example Overview" >}}
1. To view a namespace graph, click on the `bookinfo` graph icon in the Bookinfo namespace card. The graph icon is in the lower left of
the namespace card and looks like a connected group of circles.
The page looks similar to:
1. 要查看名称空间图,请单击 Bookinfo 名称空间卡中的 `bookinfo` 图标。 图形图标位于名称空间卡的左下角,看起来像是一组相连的圈子,页面类似于:
{{< image width="75%" link="./kiali-graph.png" caption="Example Graph" >}}
1. To view a summary of metrics, select any node or edge in the graph to display
its metric details in the summary details panel on the right.
1. 要查看度量标准摘要,请选择图中的任何节点或边,以便在右侧的 summary details 面板中显示其度量的详细信息。
1. To view your service mesh using different graph types, select a graph type
from the **Graph Type** drop down menu. There are several graph types
to choose from: **App**, **Versioned App**, **Workload**, **Service**.
1. 要使用不同的图形类型查看服务网格,请从 **Graph Type** 下拉菜单中选择一种图形类型。有几种图形类型可供选择: **App**, **Versioned App**, **Workload**, **Service**
* The **App** graph type aggregates all versions of an app into a single graph node.
The following example shows a single **reviews** node representing the three versions
of the reviews app.
* **App** 图形类型将一个应用程序的所有版本聚合到一个图形节点中。以下示例显示了一个单独的 **reviews** 节点,它代表了评论应用程序的三个版本。
{{< image width="75%" link="./kiali-app.png" caption="Example App Graph" >}}
* The **Versioned App** graph type shows a node for each version of an app,
but all versions of a particular app are grouped together. The following example
shows the **reviews** group box that contains the three nodes that represents the
three versions of the reviews app.
* **Versioned App** 图类型显示每个应用程序版本的节点,但是特定应用程序的所有版本都组合在一起。
下面的示例显示 **reviews** 组框,其中包含三个节点,这些节点代表了评论应用程序的三个版本。
{{< image width="75%" link="./kiali-versionedapp.png" caption="Example Versioned App Graph" >}}
* The **Workload** graph type shows a node for each workload in your service mesh.
This graph type does not require you to use the `app` and `version` labels so if you
opt to not use those labels on your components, this is the graph type you will use.
* **Workload** 图类型显示了服务网格中每个工作负载的节点。
这种图类型不需要您使用 `app``version` 标签,因此,如果您选择在组件上不使用这些标签, 这是您将使用的图形类型。
{{< image width="70%" link="./kiali-workload.png" caption="Example Workload Graph" >}}
* The **Service** graph type shows a node for each service in your mesh but excludes
all apps and workloads from the graph.
* **Service** 图类型显示网格中每个服务的节点,但从图中排除所有应用程序和工作负载。
{{< image width="70%" link="./kiali-service-graph.png" caption="Example Service Graph" >}}
## Examining Istio configuration
## 检查 Istio 配置{#examining-Istio-configuration}
1. To view detailed information about Istio configuration, click on the
**Applications**, **Workloads**, and **Services** menu icons on the left menu
bar. The following screenshot shows information for the Bookinfo application:
1. 要检查有关 Istio 配置的详细信息,请单击左侧菜单栏上的 **Applications****Workloads** 和 **Services** 菜单图标。
以下屏幕截图显示了 Bookinfo 应用程序信息:
{{< image width="80%" link="./kiali-services.png" caption="Example Details" >}}
## Creating weighted routes
## 创建加权路由{#creating-weighted-routes}
You can use the Kiali weighted routing wizard to define the specific percentage of
request traffic to route to two or more workloads.
您可以使用 Kiali 加权路由转发来定义特定百分比的请求流量以路由到两个或多个工作负载。
1. View the **Versioned app graph** of the `bookinfo` graph.
1. 查看 `bookinfo` 图的 **Versioned app graph**
* Make sure you have selected **Requests percentage** in the **Edge Labels** drop down menu
to see the percentage of traffic routed to each workload.
* 确保已经在 **Edge Labels** 下拉菜单中选择了 **Requests percentage** ,以查看路由到每个工作负载的流量百分比。
* Make sure you have selected the **Service Nodes** check box in the **Display** drop down menu
to view the service nodes in the graph.
* 确保已经选中 **Display** 下拉菜单中的 **Service Nodes** 复选框,以便在图中查看服务节点。
{{< image width="80%" link="./kiali-wiz0-graph-options.png" caption="Bookinfo Graph Options" >}}
1. Focus on the `ratings` service within the `bookinfo` graph by clicking on the `ratings` service (triangle) node.
Notice the `ratings` service traffic is evenly distributed to the two `ratings` workloads `v1` and `v2`
(50% of requests are routed to each workload).
1. 通过单击 `ratings` 服务 (triangle) 节点,将关注点放在 `bookinfo` 图内的 `ratings` 服务上。
注意,`ratings` 服务流量平均分配给两个 `ratings` 服务 `v1``v2`(每台服务被路由 50 的请求)。
{{< image width="80%" link="./kiali-wiz1-graph-ratings-percent.png" caption="Graph Showing Percentage of Traffic" >}}
1. Click the **ratings** link found in the side panel to go to the service view for the `ratings` service.
1. 点击侧面板上的 **ratings** 链接,进入 `ratings` 服务的服务视图。
1. From the **Action** drop down menu, select **Create Weighted Routing** to access the weighted routing wizard.
1. **Action** 下拉菜单中,选择 **Create Weighted Routing** 以访问加权路由向导。
{{< image width="80%" link="./kiali-wiz2-ratings-service-action-menu.png" caption="Service Action Menu" >}}
1. Drag the sliders to specify the percentage of traffic to route to each workload.
For `ratings-v1`, set it to 10%; for `ratings-v2` set it to 90%.
1. 拖动滑块以指定要路由到每个服务的流量百分比。
对于 `ratings-v1`,将其设置为 10 对于 `ratings-v2` ,请将其设置为 90
{{< image width="80%" link="./kiali-wiz3-weighted-routing-wizard.png" caption="Weighted Routing Wizard" >}}
1. Click the **Create** button to create the new routing.
1. 单击 **Create** 按钮以创建新的路由。
1. Click **Graph** in the left hand navigation bar to return to the `bookinfo` graph.
1. 点击左侧导航栏中的 **Graph** 以返回到 `bookinfo` 图表。
1. Send requests to the `bookinfo` application. For example, to send one request per second,
you can execute this command if you have `watch` installed on your system:
1. 发送请求到 `bookinfo` 应用程序。例如,要每秒发送一个请求,如果您的系统上装有 `watch`,则可以执行以下命令:
{{< text bash >}}
$ watch -n 1 curl -o /dev/null -s -w %{http_code} $GATEWAY_URL/productpage
{{< /text >}}
1. After a few minutes you will notice that the traffic percentage will reflect the new traffic route,
thus confirming the fact that your new traffic route is successfully routing 90% of all traffic
requests to `ratings-v2`.
1. 几分钟后,您会注意到流量百分比将反映新的流量路由,从而确认您的新流量路由已成功将所有流量请求的 90 路由到 `ratings-v2`
{{< image width="80%" link="./kiali-wiz4-ratings-weighted-route-90-10.png" caption="90% Ratings Traffic Routed to ratings-v2" >}}
## Validating Istio configuration
## 验证 Istio 配置{#validating-Istio-configuration}
Kiali can validate your Istio resources to ensure they follow proper conventions and semantics. Any problems detected in the configuration of your Istio resources can be flagged as errors or warnings depending on the severity of the incorrect configuration. See the [Kiali validations page](http://kiali.io/documentation/validations/) for the list of all validation checks Kiali performs.
Kiali 可以验证您的 Istio 资源,以确保它们遵循正确的约定和语义。根据错误配置的严重程度,在 Istio 资源的配置中检测到的任何问题都可以标记为错误或警告。有关 Kiali 执行的所有验证检查的列表,请参考 [Kiali Validations page](http://kiali.io/documentation/validations/)。
{{< idea >}}
Istio 1.4 introduces `istioctl analyze` which lets you perform similar analysis in a way that can be used in a CI pipeline.
Istio 1.4 引入了 `istioctl analyze`,它使您能够以在 CI 管道中使用的方式执行类似的分析。
{{< /idea >}}
Force an invalid configuration of a service port name to see how Kiali reports a validation error.
强制对服务端口名称进行无效配置,以查看 Kiali 如何报告验证错误。
1. Change the port name of the `details` service from `http` to `foo`:
1. `details` 服务的端口名从 `http` 更改为 `foo`
{{< text bash >}}
$ kubectl patch service details -n bookinfo --type json -p '[{"op":"replace","path":"/spec/ports/0/name", "value":"foo"}]'
{{< /text >}}
1. Navigate to the **Services** list by clicking **Services** on the left hand navigation bar.
1. 通过单击左侧导航栏上的 **Services**,导航到 **Services** 列表。
1. Select `bookinfo` from the **Namespace** drop down menu if it is not already selected.
1. 如果尚未选择,请从 **Namespace** 下拉菜单中选择 `bookinfo`
1. Notice the error icon displayed in the **Configuration** column of the `details` row.
1. 注意在 `details` 行的 **Configuration** 列中显示的错误图标。
{{< image width="80%" link="./kiali-validate1-list.png" caption="Services List Showing Invalid Configuration" >}}
1. Click the **details** link in the **Name** column to navigate to the service details view.
1. 单击 **Name** 列中的 **details** 链接,以导航到服务详细信息视图。
1. Hover over the error icon to display a tool tip describing the error.
1. 将鼠标悬停在错误图标上可以显示描述错误的提示。
{{< image width="80%" link="./kiali-validate2-errormsg.png" caption="Service Details Describing the Invalid Configuration" >}}
1. Change the port name back to `http` to correct the configuration and return `bookinfo` back to its normal state.
1. 将端口名称改回 `http` 以更正配置,并将 `bookinfo` 返回其正常状态。
{{< text bash >}}
$ kubectl patch service details -n bookinfo --type json -p '[{"op":"replace","path":"/spec/ports/0/name", "value":"http"}]'
@ -285,81 +255,72 @@ Force an invalid configuration of a service port name to see how Kiali reports a
{{< image width="80%" link="./kiali-validate3-ok.png" caption="Service Details Showing Valid Configuration" >}}
## Viewing and editing Istio configuration YAML
## 查看并编辑 Istio YAML 文件配置{#viewing-and-editing-Istio-configuration-YAML}
Kiali provides a YAML editor for viewing and editing Istio configuration resources. The YAML editor will also provide validation messages
when it detects incorrect configurations.
Kiali 提供了一个 YAML 编辑器,用于查看和编辑 Istio 配置资源。当检测到错误的配置时YAML 编辑器还将提供验证消息。
1. Create Bookinfo destination rules:
1. 创建 Bookinfo 目标规则:
{{< text bash >}}
$ kubectl apply -f @samples/bookinfo/networking/destination-rule-all.yaml@
{{< /text >}}
1. Click `Istio Config` on the left hand navigation bar to navigate to the Istio configuration list.
1. 单击左侧导航栏上的 `Istio Config` 以导航到 Istio 配置列表。
1. Select `bookinfo` from the **Namespace** drop down menu if it is not already selected.
1. 如果尚未选择,请从 **Namespace** 下拉菜单中选择 `bookinfo`
1. Notice the error messages and the error and warning icons that alert you to several configuration problems.
1. 请注意错误消息以及错误警告图标,它们会警告您一些配置问题。
{{< image width="80%" link="./kiali-istioconfig0-errormsgs.png" caption="Istio Config List Incorrect Configuration Messages" >}}
1. Hover over the error icon in the **Configuration** column of the `details` row to see additional messages.
1. 将鼠标悬停在 `details` 行的 **Configuration** 列中的错误图标上,以查看其他消息。
{{< image width="80%" link="./kiali-istioconfig1-tooltip.png" caption="Istio Config List Incorrect Configuration Tool Tips" >}}
1. Click the **details** link in the **Name** column to navigate to the `details` destination rule view.
1. 单击 **Name** 列中的 **details** 链接,以导航到 `details` 目标规则视图。
1. Notice the messages and icons that alert you to several validation rules that failed.
1. 请注意消息和图标,它们提醒您一些失败的验证规则。
{{< image width="80%" link="./kiali-istioconfig2-details-errormsgs.png" caption="Istio Configuration Details View Showing Errors" >}}
1. Click the **YAML** tab to view the YAML for this Istio destination rule resource.
1. 单击 **YAML** 选项卡以查看此 Istio 目标规则资源的 YAML。
1. Notice the color highlights and icons on the rows that have failed validation checks.
1. 请注意未通过验证检查的行颜色会突出显示和异常图标。
{{< image width="80%" link="./kiali-istioconfig3-details-yaml1.png" caption="YAML Editor Showing Validation Errors and Warnings" >}}
1. Hover over the yellow icon to view the tool tip message that informs you of the validation check that triggered the warning.
For more details on the cause of the warning and how to resolve it, look up the validation warning message on the
[Kiali Validations page](http://kiali.io/documentation/validations/).
1. 将鼠标悬停在黄色图标上可以查看工具提示消息,该消息提示您触发了警告的验证检查。
有关警告起因和解决方法的更多详细信息,请在 [Kiali Validations page](http://kiali.io/documentation/validations/) 上查找验证警告消息。
{{< image width="80%" link="./kiali-istioconfig3-details-yaml2.png" caption="YAML Editor Showing Warning Tool Tip" >}}
1. Hover over the red icon to view the tool tip message that informs you of the validation check that triggered the error.
For more details on the cause of the error and how to resolve it, look up the validation error message on the
[Kiali Validations page](http://kiali.io/documentation/validations/).
1. 将鼠标悬停在红色图标上可以查看工具提示消息,该消息提示您触发错误的验证检查。有关错误原因和解决方法的更多详细信息,请在 [Kiali Validations page](http://kiali.io/documentation/validations/) 上查找验证错误消息。
{{< image width="80%" link="./kiali-istioconfig3-details-yaml3.png" caption="YAML Editor Showing Error Tool Tip" >}}
1. Delete the destination rules to return `bookinfo` back to its original state.
1. 删除目标规则,使 `bookinfo` 返回其原始状态。
{{< text bash >}}
$ kubectl delete -f samples/bookinfo/networking/destination-rule-all.yaml
{{< /text >}}
## About the Kiali Public API
## 关于 Kiali Public API{#about-the-Kiali-Public-API}
To generate JSON files representing the graphs and other metrics, health, and
configuration information, you can access the
[Kiali Public API](https://www.kiali.io/api).
For example, point your browser to `$KIALI_URL/api/namespaces/graph?namespaces=bookinfo&graphType=app`
to get the JSON representation of your graph using the `app` graph type.
要生成代表图表和其他指标,运行状况和配置信息的 JSON 文件,您可以访问
[Kiali Public API](https://www.kiali.io/api)。
例如,将浏览器指向 `$KIALI_URL/api/namespaces/graph?namespaces=bookinfo&graphType=app` 以使用 `app` 图形类型获取图形的 JSON 表示形式。
The Kiali Public API is built on top of Prometheus queries and depends on the
standard Istio metric configuration. It also makes Kubernetes API calls to
obtain additional details about your services. For the best experience using
Kiali, use the metadata labels `app` and `version` on your application
components. As a template, the Bookinfo sample application follows this
convention.
Kiali Public API 建立在 Prometheus 查询之上,并且取决于标准的 Istio 度量配置。
它还会调用 Kubernetes API 以获取有关您的服务的其他详细信息。
为了获得使用 Kiali 的最佳体验,请在应用程序组件上使用元数据标签 `app``version`。 作为模板Bookinfo 示例应用程序遵循此约定。
## Cleanup
## 清理{#cleanup}
If you are not planning any follow-up tasks, remove the Bookinfo sample application and Kiali from your cluster.
如果您不计划任何后续任务,请从群集中删除 Bookinfo 示例应用程序和 Kiali。
1. To remove the Bookinfo application, refer to the [Bookinfo cleanup](/zh/docs/examples/bookinfo/#cleanup) instructions.
1. 要删除 Bookinfo 应用程序,请参阅 [Bookinfo cleanup](/zh/docs/examples/bookinfo/#cleanup) 说明。
1. To remove Kiali from a Kubernetes environment, remove all components with the `app=kiali` label:
1. 要从 Kubernetes 环境中删除 Kiali请删除所有带有 `app=kiali` 标签的组件:
{{< text bash >}}
$ kubectl delete all,secrets,sa,configmaps,deployments,ingresses,clusterroles,clusterrolebindings,customresourcedefinitions --selector=app=kiali -n istio-system