Experiments with kafka and the kafka confluent platform running on top of kubernetes.
Before beginning with the setup run the following command:
asdf installTo setup a local run the following command:
make startThis will start the following components in a local k8s single node cluster:
- Kafka
- ZooKeeper
- Kafka-Connect
- MSSQL
To configure the kubeconfig in your terminal:
export KUBECONFIG=$(k3d get-kubeconfig --name=kafka-labs)Once your done stop the cluster:
make stopMake sure to forward the ports of the services:
make pfIn another terminal enter the following commands to install the debezium mssql plugin:
cd terraform
terraform applyMake sure to forward the ports of the services:
make pfIn another terminal enter the following command:
make producerThis will insert 3000 rows into the ship and train tables every second for the next hour.
Make sure to forward the ports of the services:
make pfIn another terminal enter the following command:
make listen TOPIC=main.dbo.shipTo monitor the pod that runs kafka connect:
make monitoring