Skip to content

This repo has the docker compose file for ssl secured kafka cluster

Notifications You must be signed in to change notification settings

fabriciovz/kafka-cluster-ssl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-cluster-ssl

This repo has the repo for the kafka-cluster-ssl.

Generate the required certs for setting up the ssl secured cluster

  • Navigate to the secrets directory.

  • Run the below command.

sh create-certs.sh

Produce/Consumer Messages in a SSL Secured Environment

  • Produce Messages to the topic.
docker exec --interactive --tty kafka1  \
kafka-console-producer --bootstrap-server localhost:9092 \
                       --topic test-topic \
                       --producer.config /etc/kafka/properties/producer.properties

  • Produce Messages to the topic.
docker exec --interactive --tty kafka1  \
kafka-console-consumer --bootstrap-server localhost:9092 \
                       --topic test-topic \
                       --from-beginning \
                       --consumer.config /etc/kafka/properties/consumer.properties
docker exec --interactive --tty kafka1  \
kafka-console-consumer --bootstrap-server localhost:9092 \
                       --topic library-events \
                       --from-beginning \
                       --consumer.config /etc/kafka/properties/consumer.properties

About

This repo has the docker compose file for ssl secured kafka cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%