<p>I have created a headless statefull service in kubernates. and cassandra db is running fine.</p>
<pre><code>PS C:\&gt; .\kubectl.exe get svc
NAME         CLUSTER-IP   EXTERNAL-IP   PORT(S)    AGE  
cassandra    None         &lt;none&gt;        9042/TCP   50m  
kubernetes   10.0.0.1     &lt;none&gt;        443/TCP    6d


PS C:\&gt; .\kubectl.exe get pods  
NAME          READY     STATUS    RESTARTS   AGE  
cassandra-0   1/1       Running   0          49m  
cassandra-1   1/1       Running   0          48m  
cassandra-2   1/1       Running   0          48m  
</code></pre>
<p>I am running all this on minikube. From my laptop i am trying to connect to 192.168.99.100:9402 using a java program. But it is not able to connect.</p>

parag mangal
<p>Looks like your service not defined with NodePort. can you change service type to <code>NodePort</code> and test it.</p>

<p>when we define svc to NodePort we should get two port number for the service.</p>
