Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 8 Materials and Homework.

Follow us on Eventbrite to get notified when new workshops are scheduled!


question

sandy.davis_63587 avatar image
sandy.davis_63587 asked ·

Running kubectl returns "TLS handshake timeout"

I'm on a Mac and everything has gone well except I started getting the following error when executing various kubectl commands. After multiple attempts the command may execute successfully. But now I'm to the point after 10 minutes I can't get past this error. Any help is appreciated.

kubectl -n cass-operator describe cassdc dc1
Unable to connect to the server: net/http: TLS handshake timeout
kubectl -n cass-operator exec -it cluster1-dc1-default-sts-0 -- /bin/bash
Unable to connect to the server: net/http: TLS handshake timeout
workshop
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

bettina.swynnerton avatar image
bettina.swynnerton answered ·

Hi @sandy.davis_63587,

this is likely due to insufficient resources. Try to increase the resource limits in your Docker preferences.

See this Stackoverflow post for more info, where a user reported similar issues.

https://stackoverflow.com/questions/54264421/suddenly-getting-unable-to-connect-to-the-server-net-http-tls-handshake-timeo

I hope this helps to overcome this issue.


Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered ·

To add to Bettina's answer, we have previously advised during the workshops that you will run into issues if you don't provision sufficient resources on your machine.

We recommend that you allocate the following to Docker:

  • 4 cores
  • 4GB of RAM (8GB preferred)

These minimum settings should allow you to complete the exercises for the workshops. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.