What's described in that doc is even easier today thanks to Operators (https://coreos.com/operators), which, to quote the description page, are "application-specific controller[s] that extend[s] the Kubernetes API to create, configure and manage instances of complex stateful applications on behalf of a Kubernetes user."
Disclosure: I work on Kubernetes at Google (and wrote the doc you linked to).
Disclosure: I work on Kubernetes at Google (and wrote the doc you linked to).