|
| 1 | +// Module included in the following assemblies: |
| 2 | +//* service_mesh/v2x/ossm-reference-kiali.adoc |
| 3 | +:_content-type: REFERENCE |
| 4 | +[id="ossm-smcp-kiali_{context}"] |
| 5 | += Specifying Kiali configuration in the SMCP |
| 6 | + |
| 7 | +You can configure Kiali under the `addons` section of the `ServiceMeshControlPlane` resource. Kiali is enabled by default. To disable Kiali, set `spec.addons.kiali.enabled` to `false`. |
| 8 | + |
| 9 | +You can specify your Kiali configuration in either of two ways: |
| 10 | + |
| 11 | +* Specify the Kiali configuration in the `ServiceMeshControlPlane` resource under `spec.addons.kiali.install`. This approach has some limitations, because the complete list of Kiali configurations is not available in the SMCP. |
| 12 | +
|
| 13 | +* Configure and deploy a Kiali instance and specify the name of the Kiali resource as the value for `spec.addons.kiali.name` in the `ServiceMeshControlPlane` resource. You must create the CR in the same namespace as the Service Mesh control plane, for example, `istio-system`. If a Kiali resource matching the value of `name` exists, the control plane will configure that Kiali resource for use with the control plane. This approach lets you fully customize your Kiali configuration in the Kiali resource. Note that with this approach, various fields in the Kiali resource are overwritten by the {SMProductShortName} Operator, specifically, the `accessible_namespaces` list, as well as the endpoints for Grafana, Prometheus, and tracing. |
| 14 | +
|
| 15 | +.Example SMCP parameters for Kiali |
| 16 | +[source,yaml] |
| 17 | +---- |
| 18 | +apiVersion: maistra.io/v2 |
| 19 | +kind: ServiceMeshControlPlane |
| 20 | +metadata: |
| 21 | + name: basic |
| 22 | +spec: |
| 23 | + addons: |
| 24 | + kiali: |
| 25 | + name: kiali |
| 26 | + enabled: true |
| 27 | + install: |
| 28 | + dashboard: |
| 29 | + viewOnly: false |
| 30 | + enableGrafana: true |
| 31 | + enableTracing: true |
| 32 | + enablePrometheus: true |
| 33 | + service: |
| 34 | + ingress: |
| 35 | + contextPath: /kiali |
| 36 | +---- |
| 37 | + |
| 38 | +.`ServiceMeshControlPlane` Kiali parameters |
| 39 | +[options="header"] |
| 40 | +[cols="l, a, a, a"] |
| 41 | +|=== |
| 42 | +|Parameter |Description |Values |Default value |
| 43 | +|spec: |
| 44 | + addons: |
| 45 | + kiali: |
| 46 | + name: |
| 47 | +|Name of Kiali custom resource. If a Kiali CR matching the value of `name` exists, the {SMProductShortname} Operator will use that CR for the installation. If no Kiali CR exists, the Operator will create one using this `name` and the configuration options specified in the SMCP. |
| 48 | +|string |
| 49 | +|`kiali` |
| 50 | + |
| 51 | +|kiali: |
| 52 | + enabled: |
| 53 | +|This parameter enables or disables Kiali. Kiali is enabled by default. |
| 54 | +|`true`/`false` |
| 55 | +|`true` |
| 56 | + |
| 57 | +|kiali: |
| 58 | + install: |
| 59 | +|Install a Kiali resource if the named Kiali resource is not present. The `install` section is ignored if `addons.kiali.enabled` is set to `false`. |
| 60 | +| |
| 61 | +| |
| 62 | + |
| 63 | +|kiali: |
| 64 | + install: |
| 65 | + dashboard: |
| 66 | +|Configuration parameters for the dashboards shipped with Kiali. |
| 67 | +| |
| 68 | +| |
| 69 | + |
| 70 | +|kiali: |
| 71 | + install: |
| 72 | + dashboard: |
| 73 | + viewOnly: |
| 74 | +|This parameter enables or disables view-only mode for the Kiali console. When view-only mode is enabled, users cannot use the Kiali console to make changes to the {SMProductShortname}. |
| 75 | +|`true`/`false` |
| 76 | +|`false` |
| 77 | + |
| 78 | +|kiali: |
| 79 | + install: |
| 80 | + dashboard: |
| 81 | + enableGrafana: |
| 82 | +|Grafana endpoint configured based on `spec.addons.grafana` configuration. |
| 83 | +|`true`/`false` |
| 84 | +|`true` |
| 85 | + |
| 86 | +|kiali: |
| 87 | + install: |
| 88 | + dashboard: |
| 89 | + enablePrometheus: |
| 90 | +|Prometheus endpoint configured based on `spec.addons.prometheus` configuration. |
| 91 | +|`true`/`false` |
| 92 | +|`true` |
| 93 | + |
| 94 | +|kiali: |
| 95 | + install: |
| 96 | + dashboard: |
| 97 | + enableTracing: |
| 98 | +|Tracing endpoint configured based on Jaeger custom resource configuration. |
| 99 | +|`true`/`false` |
| 100 | +|`true` |
| 101 | + |
| 102 | +|kiali: |
| 103 | + install: |
| 104 | + service: |
| 105 | +|Configuration parameters for the Kubernetes service associated with the Kiali installation. |
| 106 | +| |
| 107 | +| |
| 108 | + |
| 109 | +|kiali: |
| 110 | + install: |
| 111 | + service: |
| 112 | + metadata: |
| 113 | +|Use to specify additional metadata to apply to resources. |
| 114 | +|N/A |
| 115 | +|N/A |
| 116 | + |
| 117 | +|kiali: |
| 118 | + install: |
| 119 | + service: |
| 120 | + metadata: |
| 121 | + annotations: |
| 122 | +|Use to specify additional annotations to apply to the component's service. |
| 123 | +|string |
| 124 | +|N/A |
| 125 | + |
| 126 | +|kiali: |
| 127 | + install: |
| 128 | + service: |
| 129 | + metadata: |
| 130 | + labels: |
| 131 | +|Use to specify additional labels to apply to the component's service. |
| 132 | +|string |
| 133 | +|N/A |
| 134 | + |
| 135 | +|kiali: |
| 136 | + install: |
| 137 | + service: |
| 138 | + ingress: |
| 139 | +|Use to specify details for accessing the component’s service through an OpenShift Route. |
| 140 | +|N/A |
| 141 | +|N/A |
| 142 | + |
| 143 | +|kiali: |
| 144 | + install: |
| 145 | + service: |
| 146 | + ingress: |
| 147 | + metadata: |
| 148 | + annotations: |
| 149 | +|Use to specify additional annotations to apply to the component's service ingress. |
| 150 | +|string |
| 151 | +|N/A |
| 152 | + |
| 153 | +|kiali: |
| 154 | + install: |
| 155 | + service: |
| 156 | + ingress: |
| 157 | + metadata: |
| 158 | + labels: |
| 159 | +|Use to specify additional labels to apply to the component's service ingress. |
| 160 | +|string |
| 161 | +|N/A |
| 162 | + |
| 163 | +|kiali: |
| 164 | + install: |
| 165 | + service: |
| 166 | + ingress: |
| 167 | + enabled: |
| 168 | +|Use to customize an OpenShift Route for the service associated with a component. |
| 169 | +|`true`/`false` |
| 170 | +|`true` |
| 171 | + |
| 172 | +|kiali: |
| 173 | + install: |
| 174 | + service: |
| 175 | + ingress: |
| 176 | + contextPath: |
| 177 | +|Use to specify the context path to the service. |
| 178 | +|string |
| 179 | +|N/A |
| 180 | + |
| 181 | +|install: |
| 182 | + service: |
| 183 | + ingress: |
| 184 | + hosts: |
| 185 | +|Use to specify a single hostname per OpenShift route. An empty hostname implies a default hostname for the Route. |
| 186 | +|string |
| 187 | +|N/A |
| 188 | + |
| 189 | +|install: |
| 190 | + service: |
| 191 | + ingress: |
| 192 | + tls: |
| 193 | +|Use to configure the TLS for the OpenShift route. |
| 194 | +| |
| 195 | +|N/A |
| 196 | + |
| 197 | +|kiali: |
| 198 | + install: |
| 199 | + service: |
| 200 | + nodePort: |
| 201 | +|Use to specify the `nodePort` for the component's service `Values.<component>.service.nodePort.port` |
| 202 | +|integer |
| 203 | +|N/A |
| 204 | +|=== |
0 commit comments