Giter Site home page Giter Site logo

datastaxdevs / workshop-k8ssandra Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datastax-academy/kubecon2020

19.0 5.0 16.0 15.98 MB

Learn how to deploy and manage a data tier based on Apache Cassandra™ cluster in Kubernetes using K8ssandra.

apache-cassandra kubernetes k8ssandra workshop

workshop-k8ssandra's Introduction

K8ssandra Workshop

In this repository, you'll find everything for the Cassandra Kubernetes Workshop delivered by DataStax Developers!

How to do the workshop and learn the new skills? Very easy, just three steps!

  1. Watch the workshop on youtube
  2. Do the practice steps
  3. Ask you questions (chat or forum)

Done! That's it, you are amazing!

Table of content

Workshop Practice

Instructions has been moved to the wiki to ease the progression.

Resources and next steps

workshop-k8ssandra's People

Contributors

clun avatar hadesarchitect avatar jeffreyscarpenter avatar johnsmartco avatar mando222 avatar shallada avatar weideng1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

workshop-k8ssandra's Issues

Wiki: Local Setup fails when creating the cluster

Local Setup: https://github.com/datastaxdevs/workshop-k8ssandra/wiki/Local-Setup

With current versions of kind, helm and kubectl installed
kind create cluster --config ./kind.yaml --image kindest/node:v1.18.2
fails with

[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused.

Unfortunately, an error has occurred:
timed out waiting for the condition

This error is likely caused by:
- The kubelet is not running
- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)

If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
- 'systemctl status kubelet'
- 'journalctl -xeu kubelet'

Additionally, a control plane component may have crashed or exited when started by the container runtime.
To troubleshoot, list all containers using your preferred container runtimes CLI.

Here is one example how you may list all Kubernetes containers running in cri-o/containerd using crictl:
- 'crictl --runtime-endpoint unix:///run/containerd/containerd.sock ps -a | grep kube | grep -v pause'
Once you have found the failing container, you can inspect its logs with:
- 'crictl --runtime-endpoint unix:///run/containerd/containerd.sock logs CONTAINERID'

couldn't initialize a Kubernetes cluster

Just running
kind create cluster --config ./kind.yaml
seems to fix the issue (at least for this step)

[HW] Ankit Bhavsar

Name: Ankit Bhavsar
Linkedin Profile: https://www.linkedin.com/in/ankit-bhavsar/

Attach the homework screenshots below:

I created the set up on my local machine.

Step 1 Setting Up Cassandra

image

image

image

Step 2 Monitoring Cassandra

Prometheus
image

Grafana
image

image

image

image

Step 3 Working with Data

image

Petclinic
image

Add
image
Delete
image

image

image

Step 4 Scaling Up and Down

image

image

image

Step 5 Stargate

image

Step 6 Running Repairs

image

image

Thank you once again :)

[HW] Balakumar Natarajan

Name: Balakumar Natarajan
Linkedin Profile: https://linkedin.com/in/balakumar-natarajan-51b24422

Attach the homework screenshots below:

Type Reason Age From Message


Normal CreatedResource 4m55s cass-operator Created service k8ssandra-dc1-service
Normal CreatedResource 4m55s cass-operator Created service k8ssandra-seed-service
Normal CreatedResource 4m55s cass-operator Created service k8ssandra-dc1-all-pods-service
Normal CreatedResource 4m49s cass-operator Created statefulset k8ssandra-dc1-default-sts
Normal ScalingUpRack 4m49s (x2 over 4m49s) cass-operator Scaling up rack default

upgraded to 1.3.0

[HW] dsfgfsdg

Name:
Linkedin Profile:

Attach the homework screenshots below:

image

[HW] Joel Reis

Name: Joel Reis
Linkedin Profile: http//linkedin.com/in/joelvreis

Attach the homework screenshots below:
Print 10
Print 11
Print 12
Print 13
Pirnt 03
Pirnt 06
Print 01
Print 02
Print 04
Print 05
Print 07
Print 08
Print 09


[HW] Włodzimierz Kozłowski

Name: Włodzimierz Kozłowski
Linkedin Profile: https://www.linkedin.com/in/wlodzimierz-kozlowski/

Attach the homework screenshots below:

I try to create and run on AWS EKS cluster

image

image

image

But I have some issues with storage…

image
image

Then I copy default „gp2” StorageClass to „standard”

image

image

And then pods status is ready

image

I try to run on docker-desktop local „cluster”

image

change NodePort to LoadBalancer

image

And „standard” to „hostpath” = my StorageClass in Docker environment

image

image
image

image

image
image

WSL2 time issue when hibernate laptop
image

And eventually restart Docker for accurate data 😉

image

image

image

image

image

image

[HW] Aleks

Name: Aleks
Linkedin Profile: Aleks

Attach the homework screenshots below:

image

Error - Validation error

I tried to run helm chart for k8ssandra - issues already exist with k8ssandra version upgrade to 1.3.0

root@devops:/home/bala_stronger/workshop-k8ssandra# helm install -f k8ssandra.yaml k8ssandra k8ssandra/k8ssandra

Error:

unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(IngressRouteTCP.spec.routes[0].services[0]): unknown field "kind" in us.containo.traefik.v1alpha1.IngressRouteTCP.spec.routes.services

[HW] Vladislav Boldyrev

Name: Vladislav Boldyrev
Linkedin Profile: www.linkedin.com/in/-vb

Hello,
It is simply impossible to do a task with Reaper locally under Windows, something is broken (all other tasks are done).

Attach the homework screenshots below:

1
2
3
4
5
6
2-1
2-2
2-3
2-4
2-5
3-1
3-2
3-3
3-4
3-5
3-6
3-7
3-8
4-1
4-2
4-3
4-4
4-5
4-6
4-7
5-1
5-2
5-3
5-4
5-5
5-6

[HW] K8ssandra By Joshua B. Turner

Name: Joshua B. Turner
Email: [email protected]
LinkedIn: https://www.linkedin.com/in/taztech/

I did the labs twice and encountered many challenges using many workarounds like Postman instead of Curl, the "kubectl pods -w" command instead of the "watch kubectl get pods" command, and using the site "https://www.base64decode.org/" instead of doing this decoding inline, etc. This workshop is very difficult to complete locally from a Windows workstation where I performed the work. Had I known and if I were to attempt a third time, I'd probably do so and suggest for others to try from a Linux virtual machine. I have included various screens and configuration encountered throughout the workshop. Please provide direction on how to get Stargate and Repair running on a Windows workstation or approve the badge for the effort put in thus far. I did learn a lot from this workshop and am taking incremental steps in gaining expertise in the topics covered. It'll sink in after the inevitable repeat exposure.

Attach the homework screenshots below:

træfik
prometheus
grafana
petclinic
repair
k8ssandra-yaml

[HW] Tom Rota

Name: Tom Rota
Linkedin Profile: https://www.linkedin.com/in/trota

Attach the homework screenshots below:

Installation...
I installed the workshop on my laptop.

step1c

step1w

step1b

Monitoring...

step2

Data...

step3b

step3c

Scaling...

step4c

step4c1

Stargate...

step5c

Reaper...
The reaper ui redireced to http://repair.localhost:8080/petclinic/webui, so I logged in to the container k8ssandra-reaper-867fcd557d-9vrhh and used the executable to schedule and then manually run a repair. Hope that is ok.

step6c1

step6c2

Thanks for running the workshop and creating all this content. It was fun and educational :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.