<p>I have one Kubernetes cluster which has Metabase running. I am using the Metabase official helm configuration.</p>

<p>But when I connect to the SQL proxy from Kubernetes it always says <strong>Connections could not be acquired from the underlying database!</strong></p>

<p>I have added the Kubernetes pod IP and Nginx IP in cloud SQL proxy.</p>

Md Sirajus Salayhin
<p>Looks like you have to modify the <a href="https://github.com/helm/charts/blob/master/stable/metabase/templates/deployment.yaml" rel="nofollow noreferrer">deployment</a> variables to point to your Google Cloud SQL database.</p>

<p>This may vary depending on whether you are using PostgreSQL or MySQL for your Google Cloud SQL database.</p>

<p>With PostgreSQL you can specify a connectionURI like this:</p>

<pre><code>postgres://user:password@host:port/database?ssl=true&amp;sslmode=require&amp;sslfactory=org.postgresql.ssl.NonValidatingFactory"
</code></pre>

<p>With PostgreSQL and MySQL you can specify user/password/host/port.</p>

<p>To change these you can edit the deployment:</p>

<pre><code>kubectl -n &lt;your-namespace&gt; edit deployment metabase
</code></pre>
