TLS handshake timeout again
Kubectl stopped responding starting last night 😑
Central US 1.9.2

Hi @amazaheri, I've seen this in the past weeks a lot, normally on lower-sized nodes. So out of interest, what node size do you have configured in this cluster? Thanks
3, this one was running for a while and it went silent all of the sudden :)
@slack any thoughts?
@amazaheri sorry, I meant the size of the nodes (e.g. D2, A4, etc) :) I've experienced that when running A4 and up, my cluster is healther than if running A2, for example. (And I've got more than a dozen similar experiences with size combinations and cluster failures, unfortunately).
@Zimmergren Hey! I've got the same issue. If there's anything to do with the size of the nodes, i am currently using B2ms.
Interesting, I scaled out my cluster from 3 to 5 using Portal and I managed to connect again!
I share that experience @amazaheri, that sometimes they self-heal correctly and all is fine. Sometimes not so much. While understanding it's a preview, I'm evaluating putting production workloads on top of it once it hits GA and if this happens as often as I'm getting it right now, scaling in and out and hoping for the best isn't my go-to plan ;-)
yeap, it hit me again today
we are running 2 clusters, one with 3x D32 nodes and other with 3x D12_v2_promo nodes. Seems like our d32 has no issues while d12 has that tls handshake error come and go. Both in central us
Recently I switched staging cluster from self-created with kubeadm to AKS and I saw this error every day. The cluster is the same size as before and I didn't think that it would be this much troublesome.
Hey guys, @sercand @giorgited @amazaheri @Zimmergren @LohithChanda
I am collecting info on the 'Unable to connect to the server: net/http: TLS handshake timeout' issue, costs, and workarounds in a question over on StackOverflow: https://stackoverflow.com/questions/50726534/why-cant-kubectl-connect-to-the-azure-aks-server-managing-my-cluster-net-http
If you guys could answer a couple of these (here or above on SOF)
- Have you had the TLS issue impact your Clusters more than once?
- How long did it take before your Cluster was back up and could be connected to (what was the outage duration)?
- Did it 'heal' itself / resolve / come back to life on it's own or did you have to post a support ticket — and wait for MS to fix it?
- If support, how long was that ticket posted for before the problem was solved on your Cluster?
- Did you notice anything weird with your CPU / Network IO dropping but your disk usage jumping higher?
- Would you be in favor of allowing AKS preview customers to create higher Severity Help Tickets (For this specific issue only) regardless of their support plan in order to achieve a more timely solution?
Just noticed amazaheri's solution (which also worked for me) and added it to my writeup. I still think allowing upgraded support tickets for the issue would be appropriate but I am unsure of the costs of that on MS side.
- Only once
- 5 days. It was staging cluster not a big deal.
- It was fixed after support ticket
- 18 hours
- No
- I had this issue 3 to 4 times.
- The cluster wasn't available until i scaled out the no. of nodes. (Accessed it with the dashboard in the mean time)
- Didn't post any support tickets.
- No
- At least four times in my central cluster the last couple of weeks. More, if I count other clusters too.
- It varies. Sometimes it's a matter of minutes; sometimes it's a matter of hours or even days.
- It varies. Sometimes I re-create the cluster to get quickly up an running; Other times I've posted a support ticket where they helped fix it, and sometimes after some time it has started working again.
- Don't remember.
- No.
- No.
@LohithChanda thanks! Added the fact that Scaling up your number of nodes actually worked to my list of workaround results over on StackOverflow (https://stackoverflow.com/questions/50726534/unable-to-connect-net-http-tls-handshake-timeout-why-cant-kubectl-connect?answertab=votes#tab-top).
@Zimmergren @sercand have you guys tried scaling? Thanks for the response guys. Will concatenate the other stuff as hopefully a few more posts / user instances roll in so hopefully people know more about what to expect when it strikes.
@necevil yup. It worked sometimes, where the cluster self-healed a period after scaling. It failed sometimes with the same errors. I don't consider scaling a solution to this problem, as that causes other challenges depending on how things are set up. I wouldn't trust that routine for a GA workload, that's for sure. In the current preview, it's a bit wild west (and expected), and I'm happy to blow up the cluster and create a new one when this fails continuously.
@necevil I tried scaling on the portal but it failed to scale.
@Zimmergren updated my answer regarding scaling with your comment and also indicated that the actual Act of scaling itself may fail like it did in @sercand 's case.
Can you guys think of anything else that I should add over there that I have missed thus far?
Seems like the one piece of this that's critical is having the resources / self documentation in place to quickly re-deploy whatever clusters get impacted since the scaling may not be applicable in all scenarios (may break stuff) and may not even work to begin with.
Have any of you guys developed scripts / resources that you utilize to quickly re-deploy your Clusters?
I am starting to think about what it might take to automate that process but figured I would see if anyone has done any prior art / work on the subject.
@necevil yup, I'm re-creating a cluster in a matter of minutes and have everything back up and running without any data loss. It's pretty slick, even though it shouldn't be necessary. I cannot share the details of it right now without cleaning it up first, but am happy to help any effort to automate things if you've got a new project going.