I have installed mysql
on my Ubuntu machine. I also have a locally running Kubernetes
and deployed a mysql
deployment on Kubernetes
and can reach to that using kubectl exec -it mysql-b4769786-5hf4m sh
command, then mysql -p
.
I am a little confused now. I don't know do I have two separated databases, one running locally on my OS and the other one also runs locally but upon my Kubernetes cluster? If so, how can I reach to each of them? How should I know the shell I am working with is connected to Kubernetes mysql or my OS mysql?
Or when I write a NodeJS app, will that connect to the mysql installed on Ubuntu or mysql pod is running on local Kubernetes?