Toggle Menu

Running K8ssandra

K8ssandra provides a complete Apache Cassandra™ Kubernetes ecosystem. This means that K8ssandra provides not only Cassandra, but also useful tools for the care, feeding and use of your Cassandra database - all within the Kubernetes framework.

If you’ve used Kubernetes, you realize that Kubernetes is a powerful framework for cloud-based systems. However, creating, deploying and managing these systems can be daunting. Besides creating the necessary Kubernetes objects such as pods, deployments, services and configMaps, you also have to wire all the pieces so they can talk to each other. The more components your system has, the more complex this job becomes. Fortunately, when it comes to Cassandra, K8ssandra takes care of all this heavy lifting for you.

Get Started
As a Reminder, What’s Included in K8ssandra?

As a Reminder, What’s Included in K8ssandra?

K8ssandra is an Apache Cassandra ecosystem that contains the following:

  • Cassandra-Operator - a Kubernetes-ready CRD for running Cassandra
  • Prometheus - a metrics gathering facility
  • Grafana - a UI with dashboards for viewing metrics collected by Prometheus
  • Reaper - a utility for maintaining data consistency within the Cassandra cluster
  • Medusa - a backup/restore utility crafted specifically for Cassandra
  • Stargate - a service that provides multiple APIs, such as REST, GraphQL and more, for Cassandra data

Since an open source community supports K8ssandra, as the community adds more resources to K8ssandra, you will be able to leverage their work. You may even want to join the community at k8ssandra.io and contribute some feedback or work of your own.

Next: How Do I Install K8ssandra?

How Do I Install K8ssandra?

K8ssandra is Helm-based. Helm is a Kubernetes package manager like yum, or apt. You can deploy all the pieces of K8ssandra with a single Helm command, saving you days of work. The K8ssandra community has already figured out how to configure all the parts and pieces so they work together right out of the box.

To install K8ssandra, you’ll need a Helm client. Then you update your client with the URL for the K8ssandra Helm repository (https://helm.k8ssandra.io/) and access the chart right from the URL.

Next: Can I Customize My K8ssandra Config?
How Do I Install K8ssandra?
Can I Customize My K8ssandra Config?

Can I Customize My K8ssandra Config?

Yes! K8ssandra is easy to customize - just create a configuration file including the settings you wish to modify, and apply the configuration using Helm.

If you have ever deployed your own stand-alone Apache Cassandra database, then you know there is a myriad of configuration settings. The K8ssandra Helm chart simplifies this process while encouraging Cassandra best-practices. For example, changing the size of a Cassandra cluster can be challenging. But, in K8ssandra, you merely set the size of the cluster and tell Helm to make it so. The process of scaling down is similar - just lower the desired number of nodes and K8ssandra takes care of all the procedural details needed to create a Cassandra database of the size specified.

The K8ssandra Helm chart is very well documented, which takes the guesswork out of the configuration process. When you want to customize, find the section in the Helm chart that applies to your customization, read through the instructions in the comments, create a corresponding configuration file and apply the changes.

Next: Skill Building

Skill Building

Are you ready to use K8ssandra to install and customize all Apache Cassandra in Kubernetes components in an integrated system?

Running K8ssandra

Learn to configure and run K8ssandra

CONTRIBUTORS

In the previous scenarios you have learned to install and use the individual open source components of an Apache Cassandra ecosystem in Kubernetes. Now, let's learn how to use K8ssandra to install and customize these same components in an integrated system!

 

Note: If you have not already completed the prerequisite scenarios, you can find them here:

In this scenario, we will:

  • Install the K8ssandra ecosystem and the example app
  • Customize our system to perform monitoring using the Helm chart
  • Expose Reaper so we can access it via the Katacoda proxy
  • Use an ingress to expose Stargate APIs
  • Modify the size of our cluster using Helm

 

Let's get started!

Time to Complete

20 minutes

Difficulty

Intermediate

Share

Do you have a suggestion or issue you’ve discovered?

Share Feedback

More Resources

Items related to Kubernetes

K8ssandra docs

K8ssandra docs

An overview of K8ssandra

Learn More
Helm Youtube video tutorial

Helm Youtube video tutorial

An overview of Helm and Helm Charts

Read More
Blog: DBA to SRE With K8ssandra

Blog: DBA to SRE With K8ssandra

Transitioning from a DBA to an SRE with K8ssandra

Read More