How would I connect to a MySQL on the host machine from inside a docker kubernetes pod?

8/30/2020

I have a MySQL server running on my local machine, accessible at localhost:3306.

I also have a KinD cluster set up on WSL2, with Docker integration. How would I access the server from a python application inside a kubernetes pod?

-- asuprem
docker
kind
kubernetes
mysql
windows-subsystem-for-linux

0 Answers