I’m working on setting up a replication controller where each node shares a readOnly claim to a gcePersistentDisk persistent volume. I’m running into an issue where when I create the replication controller, only one node successfully is created, and the other are stuck in `ContainerCreating` status because the first node mounted the volume in Read/Write mode, prevent any of the others from doing the same. I’ve specified `readOnly: true` in the PersistentVolume spec, in the volumes for the replication controller, and in the mount for the container spec, as well as the ReadOnlyMany access mode in both the PersistentVolume and the PersistentVolumeClaim. Nothing I've tried has helped with this situation.
When I run `kubectl describe` on one of the failing pods, I get the following error messages:
Reason: FailedMount
Message: Unable to mount volumes for pod "app-486g4_default": Could not attach GCE PD "storage-1". Timeout waiting for mount paths to be created.
Reason: FailedSync
Message: Error syncing pod, skipping: Could not attach GCE PD "athena-backups-1". Timeout waiting for mount paths to be created.
The volumes from the same describe call are as follows:
Volumes:
data:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
backups:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: storage-claim
ReadOnly: true
Any idea what could be going wrong here?