Replies: 1 comment 3 replies
-
Hi @ghvlg, if you are using Minikube for the Demo setup, the Kafka clusters are exposed using a
Example output:
This means that the Kafka Cluster is reachable using your Minikube's host IP (e.g. 192.168.56.101 when running in a VM, or 127.0.0.1 when running on localhost) and port 30635 for SSL, or 32003 for PLAINTEXT connection (note that PLAINTEXT may not work, as the Kafka is configured to get client authentication from a client SSL certificate). So you could use e.g. An example Spring Boot config file can be downloaded from your running Galapagos. You will need to do the following actions and adjustments:
As the server certificate of the Kafka broker will most likely not match the correct (used) IP address, you should disable hostname verification, which can be added to the Spring Boot config. The final config may look like this: spring:
kafka:
bootstrap-servers: "192.168.56.101:30635"
ssl:
trust-store-location: file:./kafka-truststore.jks
trust-store-password: changeit
trust-store-type: PKCS12
key-store-location: file:./aramis_devtest.p12
key-store-password: changeit
key-store-type: PKCS12
protocol: SSL
properties:
security.protocol: SSL
# required for local Kafka server
ssl.endpoint.identification.algorithm: "" Two example applications (one for producer, and one for consumer) will be added to the HermesGermany workspace soon. There, you will only have to add the mentioned files (truststore and keystore) and set correct bootstrap servers. Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
How to directly access Kafka made in Demo Setup, from outside, e.g. from separate Docker container running outside of one of Kubernetes clusters made by Demo setup?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions