Skip to content

Commit d17bdd7

Browse files
authored
docs(kroxylicious): additions for virtual cluster support in UI (#2404)
* docs(kroxylicious): additions for virtual cluster support in UI Signed-off-by: prmellor <pmellor@redhat.com> * docs(review): updates from comments by copilot Signed-off-by: prmellor <pmellor@redhat.com> --------- Signed-off-by: prmellor <pmellor@redhat.com>
1 parent a37f94e commit d17bdd7

File tree

5 files changed

+69
-4
lines changed

5 files changed

+69
-4
lines changed

docs/sources/assemblies/assembly-deploying.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ include::../modules/deploying/proc-deploying-operator-crd.adoc[leveloffset=+2]
3838
//include::../modules/deploying/proc-deploying-operator-olm-ui.adoc[leveloffset=+2]
3939
//Using the operator to deploy the console
4040
include::../modules/deploying/proc-connecting-console.adoc[leveloffset=+1]
41+
//virtual kafka clusters
42+
include::../modules/deploying/ref-virtual-kafka-clusters.adoc[leveloffset=+2]
4143
//cluster connection authentication options
4244
include::../modules/deploying/ref-authentication-options.adoc[leveloffset=+2]
4345
//kafka connect

docs/sources/modules/con-cluster-overview-page.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
The *Cluster overview* page shows the status of a Kafka cluster.
88
Use this page to assess broker readiness, identify cluster errors or warnings, and monitor overall health.
99

10+
Virtual Kafka clusters are identified with a *Virtual* label next to the cluster name.
11+
1012
At a glance, the page displays:
1113

1214
* Number of topics and partitions
@@ -22,7 +24,9 @@ At a glance, the page displays:
2224
Metrics are presented as interactive charts.
2325

2426
* For *Cluster metrics*, use the dropdown menu to view data for a specific node or for all nodes.
25-
* For *Topic metrics*, use the dropdown menu to view data for a specific topic or for all topics.
27+
* For *Topic metrics*, use the dropdown menu to view data for a specific topic or for all topics.
28+
29+
NOTE: Metrics are not available for virtual Kafka clusters.
2630

2731
You can adjust the time range for the charts, from the last 5 minutes up to 7 days.
2832

docs/sources/modules/con-navigating-the-console.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ Offset and lag metrics are available for consumer groups.
1717

1818
NOTE: If the cluster navigation menu is hidden, click the navigation menu icon (three horizontal lines) in the console header to reveal it.
1919

20+
== Navigate between clusters
21+
22+
After you log in to a cluster, a cluster selector appears at the top of each console page.
23+
The selector shows the current cluster and the number of available clusters.
24+
25+
Click the selector to:
26+
27+
* Switch to another cluster
28+
* Return to the console homepage to view all clusters
29+
30+
Kroxylicious virtual Kafka clusters appear with a *Virtual* label in the console.
31+
A virtual Kafka cluster is a logical Kafka cluster that is accessible to clients over the network.
32+
The Kroxylicious proxy exposes the virtual cluster and forwards client requests to an underlying Kafka cluster using configured filters.
33+
2034
== Choose how the console looks
2135

2236
The StreamsHub Console supports three theme options: *Light*, *Dark*, and *System*. When set to *System*, the console matches your operating system theme preference.

docs/sources/modules/deploying/proc-connecting-console.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you deployed the xref:proc-deploying-kafka-{context}[example Kafka cluster] p
2424
+
2525
Otherwise, configure the resource to connect to your Kafka cluster.
2626
+
27-
.Example console configuration
27+
.Deploying the console with an example configuration for connecting to a Kafka cluster
2828
[source,yaml]
2929
----
3030
apiVersion: console.streamshub.github.com/v1alpha1
@@ -46,8 +46,8 @@ spec:
4646
----
4747

4848
* `hostname` defines the hostname used to access the console over HTTP.
49-
* `kafkaClusters.name` defines the name of the `Kafka` resource that represents the cluster.
50-
* `kafkaClusters.namespace` specifies the namespace where the Kafka cluster is deployed.
49+
* `kafkaClusters.name` specifies the name of the Strimzi `Kafka` resource that represents the cluster.
50+
* `kafkaClusters.namespace` specifies the namespace where the `Kafka` resource is deployed.
5151
* `kafkaClusters.listener` specifies the listener used to expose the Kafka cluster for console connections.
5252
* `kafkaClusters.properties.values` optionally defines additional connection properties.
5353
* `kafkaClusters.properties.valuesFrom` optionally specifies ConfigMaps or Secrets that provide connection properties.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
:_mod-docs-content-type: REFERENCE
2+
3+
// Module included in the following assemblies:
4+
//
5+
// assembly-deploying.adoc
6+
7+
[id='ref-virtual-kafka-clusters-{context}']
8+
= Adding virtual Kafka clusters
9+
10+
[role="_abstract"]
11+
You can configure the console to connect to Kroxylicious virtual Kafka clusters.
12+
A virtual cluster is a logical Kafka endpoint exposed by the Kroxylicious proxy.
13+
14+
When configured, virtual clusters appear in the console alongside physical Kafka clusters.
15+
Virtual clusters are identified with a *Virtual* label in the cluster selector.
16+
17+
Virtual clusters are defined using the `kafkaClusters.kind` property.
18+
19+
`kafkaClusters.kind`:: Specifies the type of Kafka cluster resource.
20+
If not specified, the console assumes a Strimzi-managed Kafka cluster (`kafkas.kafka.strimzi.io`).
21+
Set this property to `virtualkafkaclusters.kroxylicious.io` when configuring a Kroxylicious virtual Kafka cluster.
22+
23+
.Deploying the console with an example configuration for connecting to a virtual Kafka cluster
24+
[source,yaml]
25+
----
26+
apiVersion: console.streamshub.github.com/v1alpha1
27+
kind: Console
28+
metadata:
29+
name: my-console
30+
spec:
31+
hostname: my-console.<cluster_domain>
32+
kafkaClusters:
33+
- name: my-cluster
34+
kind: virtualkafkaclusters.kroxylicious.io
35+
namespace: my-proxy
36+
properties:
37+
values:
38+
- name: bootstrap.servers
39+
value: 'my-cluster-cluster-ip-bootstrap.my-proxy.svc.cluster.local:9292'
40+
----
41+
42+
* `kafkaClusters.name` specifies the name of the Kroxylicious `VirtualKafkaCluster` resource that represents the cluster.
43+
* `kafkaClusters.kind` specifies that the cluster is a Kroxylicious virtual Kafka cluster.
44+
* `kafkaClusters.namespace` specifies the namespace where the `VirtualKafkaCluster` resource is deployed.
45+
* `kafkaClusters.properties.values` specifies Kafka client connection properties, such as the bootstrap server address.

0 commit comments

Comments
 (0)