<p>We have three node Cassandra cluster spinned up in Kubernetes.</p>
<pre><code>$ kubectlget pods
NAME                     READY   STATUS    RESTARTS   AGE
k8-cluster-0             1/1     Running   0          6d4h
k8-cluster-1             1/1     Running   0          6d4h
k8-cluster-2             1/1     Running   0          6d4h
</code></pre>
<p>Built a load balancer on top of this</p>
<pre><code>$ kubectl get service
NAME                          TYPE           CLUSTER-IP        EXTERNAL-IP     PORT(S)                                                       AGE   
cassandra-dse-port            LoadBalancer   1.2.3.4          10.11.12.13  9042:31791/TCP,7000:30071/TCP,7001:30114/TCP,7199:31043/TCP   4h38m
</code></pre>
<p>I am able to connect to <code>cqlsh</code> by executing in pod. But how do I connect to cluster from local?
like which ip i need to mention to connect to <code>cqlsh</code></p>

<p>You can use kubectl port-forward command to expose it your localhost.</p>

<p>Checkout <a href="https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/" rel="nofollow noreferrer">this link</a></p>

<p>You can expose it via pod or service name ...</p>
