I was going through in depth of K8s volumes and one of the concept messed me up. It would be great if someone could explain me this. These are the modes in K8s volumes.
ReadWriteOnce -- the volume can be mounted as read-write by a single node
ReadOnlyMany -- the volume can be mounted read-only by many nodes
ReadWriteMany -- the volume can be mounted as read-write by many nodes
What if I run two mysql pods on same node and the mode is ReadWriteOnce ? How my both pods will write?
What if I run two mysql pods on two different nodes and the mode is ReadWriteOnce ? How my both pods will write?
What if I run two mysql pods on same node and the mode is ReadWriteMany ? How my both pods will write?
What if I run two mysql pods on two different nodes and the mode is ReadWriteMany ? How my both pods will write?
All have same pod replica.