<p>I'd like use a single <strong>google compute engine</strong> <em>disk</em> and mount it to multiple places a <em>Kubernetes</em> <strong>Google Container Engine</strong>.</p>

<p>I'm wondering if using <code>persistentVolumeClaim</code> would work, but what I did expect to work is being able to mount two partitions of the same disk:</p>

<pre><code>  ...
  volumes:
    - name: database
      gcePersistentDisk:
        pdName: dist-1
        fsType: ext4
        partition: 1
        readOnly: true
    - name: media
      gcePersistentDisk:
        pdName: disk-1
        fsType: ext4
        partition: 2
        readOnly: true
</code></pre>

<p>Mounting either of them separately works, but trying to mount both gives an error:</p>

<pre><code>FailedMount     Unable to mount volumes for pod "frontend-ni7uf_foo": Could not attach GCE PD "disk-1". Timeout waiting for mount paths to be created.
</code></pre>

<p>Technically I can manually mount both partitions on a single instance.</p>

<p>I'm wondering if it's a bug and if there is another solution for that (outside of having multiple disks)?</p>

<p>Looks like it Google Container Engine requires <code>readOnly</code> on both:</p>

<pre><code>containers:
  - volumeMounts:
      - readOnly: true
volumes:
  - gcePersistentDisk:
      readOnly: true
</code></pre>
