<p>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</p>
<p>helm list</p>
<p>and using</p>
<p>Kubectl get all -A</p>
<p>Command as running.</p>
<p>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</p>
<p>Please note that the namespace of the pod is “default” while the namespace of the application pod is “my-pod”</p>
<p>Please advise me, thank you</p>

AB1994
<p>I can see 90% of the answer included in your question, you mention that the namespace is different so that means you need to <strong>add &quot;.default&quot; to your service name</strong>.</p>
<p>You also mention a port that possibly used to connect from the outside cluster but inside the cluster, you can use <strong>9092</strong> with the service including the word headless.</p>
<p>Example</p>
<pre><code>mykafka-service-headless.default:9092
</code></pre>
<p>or</p>
<pre><code>mykafka-service-headless.default
</code></pre>
<p>without port as this is the default one.</p>
<p><strong>You will not need port forwarding</strong> but just in case, you may execute the <code>port-forward</code> command for 9092 for the subject Kafka pods.</p>
