News for hackers. Stuff that matters.
Re:Kubernetes – The Hard Way by ThePhysicist on Monday September 12, 2016 @04:53AM (#12478130)
Check out the "persistent volumes" section of the manual:

http://kubernetes.io/docs/user-guide/persistent-volumes/#par...

as well as the "volume management" section:

http://kubernetes.io/docs/user-guide/volumes/#types-of-volum...

Those two should give a good overview of the available options. Basically, you can use local paths, NFS shares, vendor-specific storage (e.g. AWS EBS) and various other things.

Re:Kubernetes – The Hard Way by creshal on Monday September 12, 2016 @05:37AM (#12478290)
> Those two should give a good overview of the available options. Basically, you can use local paths, NFS shares, vendor-specific storage (e.g. AWS EBS) and various other things.

Yeah, but which of them actually work?

Re:Kubernetes – The Hard Way by cies on Monday September 12, 2016 @07:38AM (#12478823)
> Yeah, but which of them actually work?

And on top of that, which of them work when scaling the app out. In other words: how does each option deal with having multiple containers mount it.

edit:

From this link -- http://kubernetes.io/docs/user-guide/volumes/#types-of-volum... -- I found that the following volumes allow mounting by multiple writers: nfs, glusterfs and cephfs.

But which one of these works well under (production) load?

Re:Kubernetes – The Hard Way by db48x on Tuesday September 13, 2016 @01:49AM (#12485881)
There is no single "production load"; everyone's load is different, so you'll have to try it and measure. This is always the case with any storage system.
Re:Kubernetes – The Hard Way by ThePhysicist on Monday September 12, 2016 @07:28AM (#12478775)
It depends on the environment: If you're on AWS, you can use EBS, if you have an NFS share you can use that. In the simplest case, you can just a `hostPath` volume to mount a local directory from the pod's host.
Re:Kubernetes – The Hard Way by justinsb on Monday September 12, 2016 @09:18AM (#12479382)
If you're on GCE or AWS, GCE PDs or AWS EBS works out-of-the-box (i.e. using kube-up, kops or kube-aws on AWS, kube-up or GKE on GCE).

Everything should work, but it's harder to validate / work around every NFS server's possible set of configuration options (for example).