-
Notifications
You must be signed in to change notification settings - Fork 37
Convert production cassandra config to a template with volumeClaimTemplate support #89
Conversation
Signed-off-by: Greg Swift <gregswift@gmail.com>
…s its own pvc Signed-off-by: Greg Swift <gregswift@gmail.com>
That's correct: we provide the template as a starting point, but we have no intention in getting into the business of providing a production-grade Cassandra installation :-) |
production/cassandra-template.yml
Outdated
spec: | ||
terminationGracePeriodSeconds: 1800 | ||
containers: | ||
- name: ${CASSANDRA_SERVICE_NAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it missing a }
?
production/cassandra-template.yml
Outdated
app: jaeger | ||
jaeger-infra: cassandra-statefulset | ||
spec: | ||
serviceName: ${CASSANDRA_SERVICE_NAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it missing a }
?
Thanks for the PR! Looks good to me, except for a couple of places where it seems a |
Signed-off-by: Greg Swift <gregswift@gmail.com>
I thought i had caught all of those :/ updated. my whole point in making this happen was to actually use this as the prod data store because it was already openshift prepared. So i'm a bit torn around what to move forward with :/ |
You probably know this better than me, but having Cassandra on Kubernetes/OpenShift is tricky, as pods come and go without notice. As far as I understand, this is not a pattern that Cassandra is particularly fond of. @pavolloffay and/or @burmanm can probably give you more details, as they spent more time on it than I have. Besides, at the time we wrote this OpenShift template, there hasn't been any official/supported way of running Cassandra on them, other than a few quick starts/tutorials here and there. This might have changed, though. In any case, the main point is that we expect users to understand what they are doing with their Cassandra installation and be able to self-support: we can help with the Jaeger parts, but we can't help with the Cassandra parts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I'll give other a chance to review as well and will merge by tomorrow at most, if there are no concerns.
Sorry for taking so long to merge this! |
thanks |
Which problem is this PR solving?
Short description of the changes
The built in cassadnra template doesnt really work with persistent data. Changing it to a template, and introducing volumeClaimTemplate in the StatefulSet makes it so its usable for being able to scaling at all.
That being said apparently according to #30 it doesnt seem like there is a goal of making the cassandra* bits in this repo prod ready?