Ingress Gateway Multiple TCP connections : Example Postgres

Hi,

I use this configuration to connect to a postgres DB, it works well:
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: postgres-gateway
namespace: NS1
spec:
selector:
istio: ingressgateway # use istio default controller
servers:

  • hosts:
    • ‘my-hostname’
      port:
      number: 5432
      name: tcp-postgres
      protocol: TCP

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: postgres-vs
namespace: NS1
spec:
hosts:

  • “my-hostname”
    gateways:
  • postgres-gateway
    hosts:
  • ‘*’
    tcp:
  • match:
    • port: 5432
      route:
    • destination:
      host: DB1-postgres-postgresql-ha-pgpool.NS1.svc.cluster.local
      port:
      number: 5432

But now I have DB2 in an other NS2.

How may I configure it ?

Thank you very much for your help.

ps: Of course I still want to use the same Hostname.