- Clone project
- Add details to
config/config.yml
- Run
docker-compose up
Docker image can be found here
The CF Kafka Proxy project is an extension of kafka-proxy which enables users to proxy CF kafka service requests to their local machines.
Additionally, a kafka-ui is included to easily manage and test the service.
The entire project is contained in main.py
file and the run script is in run.sh
file.
The config.yml
file which contains all the parameters needed to run the project, users are expected to populate this file with appropriate credentials.
- Based on the number of brokers to be proxies VLAN's are created
- The CF CLI is then used to tunnel remote CF app to VLAN's
- The kafka-proxy server is then used to proxy the VLAN connections to localhost
NOTE: Authentication is configured in the proxy server i.e. clients need not authenticate.
- Docker
- vsCode IDE with Remote containers setup
- Open folder in remote container (in vsCode)
- Modify config.yml file with appropriate details
- (optional) Add OTP to
run.sh
file OR set it as an env variable - (optional) Add CF PASSCODE to
run.sh
file OR set it as an env variable - Execute
run.sh
script
Kafka ports will be available on localhost at ports 30000 up to 30005 (based on number of brokers in cluster).
If you cluster has more ports to be exposed you need to add the same to .devcontainer/devcontainer.json
> forwardPorts
section.