I am new to k8s, have installed Kafka to the local cluster using helm install command and it is installed successfully and shown it using
helm list
and using
Kubectl get all -A
Command as running.
I installed Confluent.Kafka nugget package in my C# project and try to connect to the pod but it is not connected using localhost:13090 and giving no error message
Please note that the namespace of the pod is “default” while the namespace of the application pod is “my-pod”
Please advise me, thank you
I can see 90% of the answer included in your question, it mentions that the namespace is different, which means you have to add ".default" to your service name .
It also mentions a port that was possibly used to connect from the external cluster, but inside the cluster, you can use 9092 with the service, including the headless word.
Example
mykafka-service-headless.default:9092either
mykafka-service-headless.defaultno port as this is the default.
You won't need port forwarding , but just in case, you can run the ports port-forward command for 9092 for the Kafka pods in question.