Maybe some of you can give me some hints how to accomplish the following:
- I have two k8s clusters running on different sites.
- We established a policy, where every service should be published by ingress / https wherever possible.
- We plan to deploy an application on both sites, which depend on a mysql instance
- Between the mysql instances on both sites, we need to setup mysql replication, which uses a TCP based protocol on port 3306. This should not be published to the internet.
Create a Service
type: LoadBalancer on each site, setup Routing / NAT / VPN between the firewalls, and go.
I don’t wanna go this route, because I need a distinct IP for each upcoming application, and I need external networking setup / configuration for each application too.
I ask if this should no be possible using istio proxies? I expect it to be like:
- Run istio on both sites
- Both sites establish a tunnel and talk to each other with HTTP2, authenticated by mutal authentication
- I have a local service on each site, representing the remote tcp endpoint.
- Each established tcp connection, and the data that is being exchanged, is encapsulated by istio within the HTTP2 tunnel.
- I configure mysql replication to the local service, which is transparently tunneled to the other cluster.
Can you tell me if this is possible with istio, and give me some hints about the configuration.