Hi,

A docker image for Cassandra would be the first step in the right direction. 
What one would really want is a kubernetes Operator that can deploy, upgrade, 
etc. a Cassandra cluster 
(https://kubernetes.io/docs/concepts/extend-kubernetes/operator).

A base image with placeholders would be neat for people to quickly start using 
Cassandra. We have built our own image (actually a few of them over the time) 
and also use it e.g. for cqlsh (docker run -it —rm —entrypoint cqlsh <image> 
—help). What one would probably do in the end is building their own image based 
on the official one adding a layer with the configuration file, certificates, 
etc (or mounting them from a configmap in kubernetes).

Some things to consider for the image:
• Special care must be taken to make the image usable in OpenShift as it does 
not run the processes in the containers as root.
• Logging should be changed to stdout so that it is easier to use and 
automatically picked up by log indexers of kubernetes clusters.
• As for metrics, exposing Prometheus endpoint with them would be great as this 
makes scraping them just a matter of meta configuration of the pods (telling 
Prometheus the actual endpoint to scrape)
• I had issues with Cassandra binding on the wrong IP in a container

Would be happy to help with the image part / testing on OpenShift.

Cheers,
Dimo

> On 19. Sep 2019, at 18:32, Nate McCall <zznat...@gmail.com> wrote:
> 
> Hi Cyril,
> Thanks for bringing this topic up. I think it would be a good idea for us
> to have an "official" docker file in the source tree.
> 
> There are, however, some caveats:
> https://issues.apache.org/jira/browse/LEGAL-270?focusedCommentId=15524446&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-15524446
> 
> As long as we could adhere to those guidelines (which I don't see as hard)
> we could do this.
> 
> In looking through your specific image (thanks for posting this, btw), I
> would personally prefer something with a lot fewer dependencies (basically
> from just our source tree) and a lot more replacement properties available
> for config files.
> 
> Curious what other folks think?
> 
> Cheers,
> -Nate
> 
>> On Wed, Sep 18, 2019 at 6:43 AM Cyril Scetbon <cyril.scet...@free.fr> wrote:
>> 
>> Hey guys,
>> 
>> I heard that at the last summit there were discussions about providing an
>> official docker image to run Cassandra on Kubernetes. Is it something that
>> you’ve started to work on ? We have our own at
>> https://github.com/Orange-OpenSource/cassandra-image <
>> https://github.com/Orange-OpenSource/cassandra-image> but I think
>> providing an official image makes sense. As long as we can easily do
>> everything we do today. We could also collaborate.
>> 
>> Thank you
>> —
>> Cyril Scetbon
>> 
>> 

Reply via email to