scylla-operator icon indicating copy to clipboard operation
scylla-operator copied to clipboard

Add full support for HostNetwork pod IPs

Open geobeau opened this issue 3 years ago • 1 comments

Description of your changes:

This PR add full support for HostNetworking on scylla clusters.

The reason why HostNetworking is needed is when the clients are not inside the same Kubernetes clusters and that internal IPs are not routable outside of the cluster.

The previously proposed solution was to only override the rpc_address so that clients can connect with another address than the peer address. https://github.com/scylladb/scylla-operator/commit/a457bd5df65bbbc51368115a3ac2da934cb36ff8 However this doesn't work when joining an external cluster as nodes are using the peer address.

The main difficulty was to keep all the operations (notably replace) working. The way it was solve was to add a label on the member service with the real IP of the pod. Since the IP is assigned only after the pod is scheduled, we need to listen for changes on scylla managed pods.

Which issue is resolved by this Pull Request: Resolves #

geobeau avatar Jun 09 '21 14:06 geobeau

Any update on this?

ashtonian avatar Aug 20 '21 21:08 ashtonian

This PR is being closed because of inactivity. Feel free to reopen if you plan to work on it.

tnozicka avatar Aug 17 '23 13:08 tnozicka