I have currently deployed a kafka broker in a kubernetes cluster which is listening to another service in the same namespace . I have to now test the service from my local . I need to send Json files to the server which decodes it while consuming the message . I have tested the service multiple times locally using a python script. But now I want to test it while its in the cluster.
I went with a simple port forward kubectl port-forward kafka-0 9092:9092 -n testnamspace the ports are getting forwarded successfully [