I start experiencing with statefulsets, and I'm following this link on kubernetes website
http://kubernetes.io/docs/tutorials/stateful-application/run-replicated-stateful-application/
How can I connect my java application to the mysql database statefulset (they are all in same kubernetes cluster node and namesapce)? what service should I connect to ? which address should I use ? I tried mysql-read.default.svc.cluster.local:3306 didn't work !!!