|
| 1 | + |
| 2 | +# Kafka manager with web UI to monitor and maintain Kafka's clusters |
| 3 | + |
| 4 | +## General Information |
| 5 | +The container on: [Docker Redpanda Console](https://hub.docker.com/r/redpandadata/console) |
| 6 | + |
| 7 | +You can find the documentation of the service here: [Redpanda Console repository](https://github.com/redpanda-data/console) |
| 8 | + |
| 9 | +## Deployment |
| 10 | +By default, the service has 50 mCPU and 100 megabytes of RAM requested resources. This is enough for the normal operation of the service. But this value can be overridden individually for each deployment. |
| 11 | + |
| 12 | +By default, our Redpanda Console deployment is configured to use Kubernetes **tb-kafka** service as a connection endpoint to Kafka. If you use an external broker, please override the `KAFKA_BROKERS` variable to list your kafka brokers, a.g.: |
| 13 | + |
| 14 | +```shell |
| 15 | + - name: KAFKA_BROKERS |
| 16 | + value: "kafka-broker1:9092,kafka-broker2:9092,kafka-broker3:9092" |
| 17 | +``` |
| 18 | + |
| 19 | +### Configuring access to Kafka via SASL |
| 20 | + |
| 21 | +Uncomment the variables in the tb-kafka-ui.yml deployment file to use SASL. |
| 22 | + |
| 23 | +For the username and password, the best practice is to use Kubernetes Secrets. Please specify them *(Be sure to change **YOUR_USERNAME** and **YOUR_PASSWORD**)*: |
| 24 | +```shell |
| 25 | +export SASL_USERNAME=YOUR_USERNAME |
| 26 | +export SASL_PASSWORD=YOUR_PASSWORD |
| 27 | + |
| 28 | +kubectl create -n thingsboard secret generic kafka-sasl-credentials \ |
| 29 | +--from-literal=kafka-sasl-username=$SASL_USERNAME \ |
| 30 | +--from-literal=kafka-sasl-password=$SASL_PASSWORD |
| 31 | +``` |
| 32 | + |
| 33 | +Apply the deployment file: |
| 34 | +```shell |
| 35 | +kubectl apply -f tb-kafka-ui.yml |
| 36 | +``` |
| 37 | + |
| 38 | +## Connect to UI |
| 39 | + |
| 40 | +We didn't add external access to this tool because it is a system tool. So use port forwarding to the local machine to access the service: |
| 41 | +```shell |
| 42 | +kubectl port-forward sts/kafka-ui-redpanda 8085:8080 |
| 43 | +``` |
| 44 | + |
| 45 | +goto weblink: http://localhost:8085 |
| 46 | + |
| 47 | + |
| 48 | +If Kafka UI does not need, scale it down: |
| 49 | +```shell |
| 50 | +kubectl scale --replicas=0 statefulset kafka-ui-redpanda |
| 51 | +``` |
0 commit comments