Home:ALL Converter>kubernetes stateful set connection

kubernetes stateful set connection

Ask Time:2017-01-05T13:57:54         Author:montatich

Json Formatter

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 !!!

Author:montatich,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/41478176/kubernetes-stateful-set-connection
Anthony Yeh :

This question was cross-posted to the Vitess mailing list and was solved there. It turns out this happened because the user modified the tutorial setup to add a password for the root user. As a result, readiness probes that expected password-less login to work were failing, and the mysql-read service was left with no valid endpoints.",
2017-01-05T19:27:26
yy