I want to connect my services to one of the 3 MySQL instances that are outside the mesh since it is possible that one of them is not available at some point.
I have the following configuration but every time I try to make a request from inside the mesh it’s not possible to reach the ServiceEntry:
telnet non-existing-domain.io 3306
telnet: could not resolve non-existing-domain.io/3306: Name or service not known
apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
name: external-se-mysql
namespace: mysql-router
spec:
hosts:
- non-existing-domain.io
location: MESH_EXTERNAL
ports:
- number: 3306
name: tcp
protocol: TCP
resolution: DNS
endpoints:
- address: mysql01foo.io
ports:
tcp: 3306
- address: mysql02foo.io
ports:
tcp: 3306
- address: mysql03foo.io
ports:
tcp: 3306
what I’m doing wrong?