<p>I am trying to mount a GCE persistent disk that was created by a Kubernetes PersistentVolumeClaim resource (on GKE) to my local machine. </p>

<p>I created a PersistentVolumeClaim (that creates a persistent volume in GCE):</p>

<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: profiler-disk
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 2Gi
</code></pre>

<p>I tried to use <a href="https://cloud.google.com/storage/docs/gcs-fuse" rel="nofollow noreferrer">gcsfuse</a> to mount the disk as is written in the <a href="https://cloud.google.com/compute/docs/disks/gcs-buckets" rel="nofollow noreferrer">documentation</a>:</p>

<blockquote>
  <p>You can use the Google Cloud Storage FUSE tool to mount a Cloud Storage bucket to your Compute Engine instance. The mounted bucket behaves similarly to a <a href="https://cloud.google.com/compute/docs/disks/#pdspecs" rel="nofollow noreferrer">persistent disk</a> even though Cloud Storage buckets are object storage.</p>
</blockquote>

<p>with the command:</p>

<pre><code>gcsfuse profiler-disk hello
</code></pre>

<p>but I am getting:</p>

<blockquote>
  <p>daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: setUpBucket: OpenBucket: Unknown bucket "profiler-disk"</p>
</blockquote>

<p>I was able to load an actual bucket, so this is not an authorization/authentication issue.</p>

<p>Does anyone know how to achieve this?</p>

Amityo
<p>I was able to copy the data using <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#cp" rel="nofollow noreferrer">kubectl cp</a></p>

<pre><code>kubectl &lt;pod-name&gt;:/path &lt;local-path&gt; -c &lt;container-name&gt;
</code></pre>
