Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

exposing Cassandra causes pool creation error #45

@serdec

Description

@serdec

Hi,

I have set up Cassandra on Kubernetes, and i am trying to expose it on a public port to make it accessible to external applications that resides on a different server.
I have used the NodePort type of service which exposes the service on port 300xxx. However, when i create a session with Cassandra it connects correctly to the service, but then when trying to add Cassandra nodes to the pool it tries to connect them on the 300xxx port instead of the 9042 one.

What would be the most appropriate solution to expose Cassandra on a Kubernetes cluster?
I was thinking to use a load balacer service, but it seems that it only suits services that resides on public cloud providers. Another solution i was thinking of is to put a nginx server that handles the requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions