title: Using NodePort to connect to Database
body: <p><strong>Situation</strong>:</p>
  
  <p>I work at big company and we have a k8s cluster. </p>
  
  <p>We also have a database that is hosted somewhere else outside of the cluster.</p>
  
  <p>The database IP-Adress and the Cluster have a bi-directional FW Clearance.  </p>
  
  <p>So applications that are hosted inside the cluster can connect to the database. </p>
  
  <p>My machine does not have any clearance to the Database. I cannot test my app, write queries and so on. That slows me down and forces me to go to work, if any database-operations are required for it.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>Since I can connect and deploy on the cluster. Could I deploy a NodePort/Service/etc to a service which forwards it directly to the database?</p>
  
  <p>In this way it would "fool" the Database that the request comes from the cluster. But instead it comes from my machine at home. </p>
  
  <p>Has anybody tried something like that?</p>
  
  <p>Thanks in advance </p>