<p>I have created a MySQL deployment in kubernetes and exposed it as nodes-port.</p>
<p><em><strong>What I can do:</strong></em><br>
Access it from inside the cluster using<br>
<code>kubectl run -it --rm --image=mysql:5.6 --restart=Never mysql-client -- mysql -h mysql -ppassword</code></p>
<p><strong>What I want to do:</strong><br>
Access the MySQL server from outside the cluster(like accessing a normal MySQL server).<br>
Kubernetes v1.13 in DigitalOcean Cloud.<br>
Guide me, please.</p>

<p>You can access it by <code>mysql -u {username} -p {password} -h {any kubernetes worker ip} -P {nodePort}</code>. After you start mysql container and expose it ad node port through a service.</p>
