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

TLS Bootstrapping issue #301

Closed kack1 closed 2 years ago

kack1 commented 2 years ago

Hello,

I am currently following this tutorial and ran across and issue. I am trying to TLS bootstrap the worker nodes and ran the ./cert_verify and it it failed one of the tests Screenshot_2022-11-14_18-21-11 I followed the link and it lead me to redoing the certificate authority lab. I glimpsed through both the TLS Bootstrap and the link and could not find any reference to kubelet-client-current.crt anywhere.

I would also like to add I am deriving from this tutorial slightly as I am doing this tutorial on raspberry pis rather than on vm's. So far this is the only time the ./cert_verify came back as an error. I am uncertain if I did the previous step correctly. The ./cert_verify came back with no errors when I bootstrapped worker-1. However when I run kubectl get nodes --kubeconfig admin.kubeconfig it comes back with no resource found rather than the expected output

Thanks for any help, I know I am deriving from the original tutorial but I thought this would be a fun variation.

kack1 commented 2 years ago

Turns out my loadbalancer was configured wrong. The HAproxy config file was using the loadbalancer's loopback address and not its static ip address