<p>Detect Google Cloud Project Id from a container in Google hosted Kubernetes cluster.</p>

<p>When connecting to BigTable; I need to provide the Google Project Id. Is there a way to detect this automatically from within K8s?</p>

brent
<p>In Python, you can find the project id this way:</p>

<pre><code>import google.auth
_, PROJECT_ID = google.auth.default()
</code></pre>

<p>The original question didn't mention what programming language was being used, and I had the same question for Python.</p>
