Given the title "The Hard Way", I kind of expected it would dive deeper into this topic.
Given the title "The Hard Way", I kind of expected it would dive deeper into this topic.
Seriously though, it is getting a bit silly how almost every single kubernetes demo involving persistent data just uses emptyDir or hostPath and we are all supposed to pretend that those are a production-ready solution that won't lose data. AFAIK the PersistentVolumeClaim and StorageClass stuff will be the solution for this?
But non of these are part of your K8s tutorial :)
I recall reading that EBS is being [partially] implemented and tested. (Read: The documentation is full of "known bug: ..." and "please don't try that in production").
Gluster is completely in userspace. How would stability issues, if any, in userspace cause kernel panics? Can you comment more about that?
Tried using it for a while (last November until ~April) on Debian Jessie, with latest versions. Lots of bugs with SSL mode, lots of desynchronization issues, crippling performance issues, …
And no matter what I ran into, the bugs were already known and filed for months at that point, with zero developer reaction.
> Gluster is completely in userspace.
Unless you try using its NFS server to get not entirely disastrous performance.
> Unless you try using its NFS server to get not entirely disastrous performance.
Wrong again, Gluster's NFS server is in userspace too. Not sure how that can cause a kernel panic.
Sharing config files. Wordpress sites. Django sites. The performance was too shitty for everything.
> How did you reach out to the developers? Usually the mailing lists are very responsive and most bugs brought up on the lists are addressed.
IRC. I ended up finding all my errors unresolved by it in the mailing list archives with zero developer attention, and since I didn't have the time to help RedHat make their product actually usable, I dropped Gluster.
> Not sure how that can cause a kernel panic.
I guess it's technically not a kernel panic if I/O just stalls so hard that you can neither mount nor unmount nor otherwise access any of your NFS targets… but you have to hard reset the whole machine anyway.
On that note, are anyone using encrypted NFSv4 in production? On paper it ticks most of the right boxes, but I'm not convinced it actually works...
Histpath and emptydir aren't really acceptable as solutions since they add complexity to your cluster set up.
There are some cluster storage technoloies out there but there are no tutorials, or overviews detailing, the pros and cons, and their performance limitations in a k8s environment.
Networking was the hot topic this time last year but storage is the topic no-one is willing to talk about. Tectonic is attempting to build a solution designed for the container use-case[1]. But that's a long way off.
If you are building cloud-native applications on-prem and you need state you're on your own for now.
[1] https://coreos.com/blog/torus-distributed-storage-by-coreos....
Same conclusion I've come to.
I guess K8s is just one part of the solution, it needs to be paired with a storage solution to be really able to replace existing infra. When looking at open source solutions the landscape is pretty empty with Gluster, Ceph and FreeNAS. Where only Gluster and Ceph provide some level of HA.
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.
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?
Everything should work, but it's harder to validate / work around every NFS server's possible set of configuration options (for example).
The other solution is object storage, which is the real way forward (IMHO). This route make a app more adherent to the 12-factor principles.