Kubriak KV is a Riak KV deployment for Kubernetes. It runs on top of the
stojan/riak-kv image and and allows for
Scaling should by using a StatefulSet instead of a Deployment since it adds
ordering to the creation of the containers.
Scaling up or down the cluster is fast and does not leave it in an
Although having kube-dns (or any DNS) in the cluster is recommended. It will
pick up a FQDN from the hostname and use it. In the case that the hostname is
not a FQDN (i.e. only a hostname) it will use the container's IP address.
This is useful if you are running a single instance for a local development
This Docker image is published under
You can customize your image by extending from this one and copying additional
Scripts are executed in lexicographical order (with the
Do take a look at
prestop.d to see the already
Have in mind that the entrypoint of the image should call upon
Here are some environment variables which can be used to customize the Riak
riak-kv) the Kubernetes service that is the logical Riak cluster
default) the Kubernetes namespace in which the
riak) the Riak node name, i.e.
riak) the Riak distributed cookie
Deploying a cluster is very easy. You should create only 2 Kubernetes entities:
- Create a Service that will expose ports 8087 and 8098.
- Create a StatefulSet that will use a Kubriak KV image, and bind it with the
service from (1).
You can scale your StatefulSet up and down as much as you want.
See the folder
example for examples.
This code is Copyright © 2017 Stojan Dimitrovski. It is licensed under the
MIT X11 License. You can find a copy of the lincese in the file
included in this distribution.