mmumshad / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way on Vagrant on Local Machine. No scripts.
Apache License 2.0
4.7k stars 4.54k forks source link

Worker Nodes (No Resource Found) #78

Closed justrehan86 closed 2 years ago

justrehan86 commented 4 years ago

Hello,

Thank you for setting up the great trainings, I have got stuck in this for last 2 days, tried to troubleshoot but no success,

After Bootstrapping worker and master, When I do KUBECTL GET NODES , I get an error no resource found , When I do following for component get following eroor

kubectl get componentstatuses The connection to the server 192.168.5.30:6443 was refused - did you specify the right host or port? Where can I look for possible issue

ssmiller25 commented 4 years ago

I would look closely at your haproxy configuration. The configuration on that VM was at https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/docs/08-bootstrapping-kubernetes-controllers.md#the-kubernetes-frontend-load-balancer Did the debugging steps work (the curl https://192.168.5.30:6443/version -k from the worker nodes)?

fireflycons commented 2 years ago

Hi @justrehan86 @ssmiller25

We have now merged a major change to bring this to v1.24. Many issues have been addressed as part of the upgrade. I realise this is a very old issue, however I was tasked with closing off all old issues following the upgrade. Please try it now and feel free to raise further issues.

Thanks.