<p>I am new to Kubernetes and Helm.
I deployed a jupyterhub pod on Kubernetes (on GCP) following this line</p>
<p><a href="https://zero-to-jupyterhub.readthedocs.io/en/stable/jupyterhub/installation.html" rel="nofollow noreferrer">https://zero-to-jupyterhub.readthedocs.io/en/stable/jupyterhub/installation.html</a></p>
<ul>
<li><p>First, I managed to get it working with simple configuration and in order to interact with GCS from the notebooks I am currently uploading a keyfile.json for each user and using environment variable GOOGLE_APPLICATION_CREDENTIALS.</p>
</li>
<li><p>I would like to mount the keyfile as secret in the values.yaml. How could I do that ?
Basically, I would like to get rid of uploading manually the file for each user and have it mounted automatically through the yaml file.</p>
</li>
</ul>
<p>Thanks</p>

<p>I managed to get it working by adding this in yaml file.
keyfile.json was created as secret named gcsfs-creds with cubectl secrets.</p>
<pre><code>   extraEnv:
    GOOGLE_APPLICATION_CREDENTIALS: &quot;/etc/secrets/keyfile.json&quot;
   storage:
    extraVolumes:
      - name: gcsfs-creds
        secret:
          secretName: gcsfs-creds
          items:
            - key: keyfile.json
              path: keyfile.json
    extraVolumeMounts:
      - name: gcsfs-creds
        mountPath: &quot;/etc/secrets&quot;
        readOnly: true
</code></pre>
