<p>I want to start a minikube cluster with a data base and a java backend. </p>

<p>I have a persistent volume and the service for the mariadb database with the following persistent, claim and delpoyment </p>

<ul>
<li><a href="https://ptpb.pw/9iY3" rel="nofollow noreferrer">MariaDBpasteBin</a></li>
</ul>

<p>and the java backend with the deployment and service </p>

<ul>
<li><a href="https://ptpb.pw/3TxD" rel="nofollow noreferrer">javaPastebin</a></li>
</ul>

<p>in addition my java backend uses dropwizard and I specify the database address and all the credentials in a <code>config.yml</code></p>

<pre><code>logging:
  level: INFO
  loggers:
    DropwizardBackend.org: DEBUG
dataBase:
  driverClass: org.mariadb.jdbc.Driver
  user: &lt;userName&gt;
  password: &lt;password&gt;
  url: jdbc:mariadb://&lt;database address&gt;:&lt;port&gt;/&lt;database Name&gt;
</code></pre>

<p>Since my java backend needs to connect to the database to run at the moment I get a error message since the specified data base can not be found. I was wondering what the address of the database is? Do I have to specify it like the external IP of the java-deployment? How ever I prefer if only the backend is able to access the database.</p>

A.Dumas
<p>From your yaml it seems you have named the mariaDB service "maria" so the dns name for it should be just <code>maria</code> (if you are in the same namespace) or <code>maria.&lt;namespace&gt;</code> (from all other namespaces) or <code>maria.&lt;namespace&gt;.svc.cluster.local</code> as a FQDN.</p>
