Accessing external MySQL instance from application deployed on Kubernetes

2/21/2020

In a project, I am using kubernetes with mysql.

Till now, for sake of POC, I have made it work by setting up mysql in one of the pod and loading the DB dump to the associated DB as follows:

docker exec -i <CONTAINER NAME> mysql -uroot -p<PASSWORD> <DATABASE NAME>< /path/to/dump.sql

But to deploy it, I need to use external MySQL instance. Can anyone please help me regarding this ?

-- Joy
docker
kubernetes
mysql

0 Answers