In this repository, you'll find everything for the Cassandra Kubernetes Workshop:
- Materials used during presentations
- Hands-on exercises
Feel free to bookmark this page for future reference!
To follow along with the hands-on exercises during the workshop, you need to have a docker-ready machine with at least a 4-core + 8 GB RAM. KubeCon attendees can request a training cloud instance using this link. Notice that training cloud instances will be available only during the workshop and to be terminated 24 hours later.
- If you are using your own computer or your own cloud node, please check the requirements and install the missing tools as explained TODO NEED TO ADD here.
- If you are using a cloud training instance provided by DataStax, relax as we have you covered: prerequisites are installed already. Please do the very last steps as explained there
Title | Description |
---|---|
1 - Setting up and Monitoring Cassandra | Instructions |
2 - Working with data | Instructions |
3 - Scaling up and down | Instructions |
4 - Running repairs | Instructions |
5 - Backing up and Restoring data | Instructions |
helm repo add k8ssandra https://helm.k8ssandra.io/
helm repo update
helm install k8ssandra k8ssandra/k8ssandra
helm install k8ssandra-cluster k8ssandra/k8ssandra-cluster
Navigate to http://localhost:9090 to start seeing metrics
TODO https://github.com/spring-petclinic/spring-petclinic-reactive
For many basic config options you can change values in the values.yaml file. Next we will scale our cluster using this method.
First lets check what our current running values are using the helm get manifest k8ssandra
command. This command is used to expose all the current running values in the system.
In the command line type helm get manifest k8ssandra
and press enter
Notice how each of the yaml files that make up the deployment is displayed here
In the command line type the following
helm get manifest k8ssandra | grep size
Notice the value of size: 2
in the TODO.yaml .
Open the values.yaml and find the nodeCount paramater.
Change the value from 2 to 3 nodeCount: 3
.
Next we need to apply the change. To do this we will use the helm upgrade
command.
helm upgrade
helm get manifest k8ssandra | grep size
Notice the size: 3
in the output
If there is a need to make a config change without needing to edit a file the --set flag can be used from the CLI. Run the following command
helm upgrade --set nodeCount=2
helm get manifest k8ssandra | grep size
Notice the size: 2
in the output again.
TODO
TODO