Usually I create one mysql pod and connect it to my java application pod buy getting the sql pod ip address and replace my db_uri as follow jdbc:mysql://MYSQL-POD-IP:3306/ THEN THE CONNECTION WILL BE RUNNING FINE WITH NO ISSUE. but then I tried to create MYSQL pod using Deployments and replica sets following the link bellow and then when I tried to replace the db_uri as follow jdbc:mysql://SERVICE-CLUSTER-IP:3306/ NO CONNECTION WAS ACCOMPLISHED. Also I exposed my deployment with a service and used the following address and none of them worked jdbc:mysql://SERVICE-NAME:3306/ jdbc:mysql://SERVICE-NAME-default.svc.cluster.local:3306/
https://github.com/kubernetes/kubernetes/tree/master/examples/mysql-wordpress-pd#gce-persistent-disk How am I suppose to connect to the sql pod through the deployment service. -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.