PD can mount read-only EVERYWHERE or read-write once. No mixing. The problem is that every filesystem keeps state in memory, even in read-only mode. If the on-disk state changes while readers have cached state you will get corruption.
On Tue, Feb 14, 2017 at 9:15 AM, <dan.gard...@baddogdown.com> wrote: > > Use case: I was hoping to run a k8s Deployment volume mounting a common PD > as readOnly and then use a single k8s (cron)Job to manage the content of the > PD. But alas it s not working. Any ideas please, details below ? > > GKE: Master & Node versions: 1.5.2 [not using alpha features, hence Job not > cronJob] > > 1. SUCCESS: Mounting a PD xyz as gcePersistentDisk readOnly into a k8s > deployment running on node-pool 123, all pods can mount the volume. > > 2. SUCCESS: Mounting a PD xyz as gcePersistentDisk readWrite into a k8s Job > running on node-pool 456, the Pod created for the job can mount the volume. > > 3. FAIL: Being able to do both #1 & #2 simultaneously. > > I was hoping since I've segregated the Deployment & the Job onto different > nodes that this would work. > > -- > You received this message because you are subscribed to the Google Groups > "Kubernetes user discussion and Q&A" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kubernetes-users+unsubscr...@googlegroups.com. > To post to this group, send email to kubernetes-users@googlegroups.com. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.