Open adrianNEMO opened 5 years ago
Any update on this issue? We need to be able to reach a mysql cluster instance from several other namespaces but this bug is stopping us.
a workaround idea -- start router inside cluster namespace, create a ClusterIP or LoadBalancer service which points to the router.
Thanks @delgod , I'd prefer to use mysql-router as a sidecar in my app pod, but I will give it a try
any update on this? For production environments this would be a great feature
Is this a BUG REPORT or FEATURE REQUEST?
Choose one: FEATURE REQUEST
Versions
MySQL Operator Version:
Environment:
kubectl version
): v1.11.3uname -a
):What happened?
Using the mysql router in a different namespace from cluster
What you expected to happen?
The router should be able to connect to the cluster from a different namespace
How to reproduce it (as minimally and precisely as possible)?
Create a cluster. Create a deployment in a different namespace with the mysql router as sidecar (like in the wordpress example).
Anything else we need to know?
The router can connect to the master, but after the bootstrapping the router tries to connect to the mysql cluster node without the namespace appendix of the dns record. The log from the router: