-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Master nodes bootstrapping script #1
Comments
Hello @briankosw |
I see. That's great! Could you help me understand how the script ensures that only one of the master nodes run |
Simply, loop over all the master nodes over SSH and execute the init command there. If the server replies, exit the loop. Otherwise, continue looping. Once done, loop on the rest of the master/worker nodes and execute the join command. |
I see. I guess the only problem that I can see is when more than one master node runs
What do you think about that? |
I cannot see why more than one master node would run the init command at the same time. As I mentioned, you'll loop on the master nodes and run the command. The first one that reports the command has run successfully causes the loop to exit. |
I created 3 tier k8 cluster using your code @abohmeed , Cluster is good, but I'm no way able to login to bastion host using the private even my public key both, can you share if there is any fix ? |
Hi @abohmeed, I noticed that you have the file
kubernetes/node_startup.tmpl
that you aren't including in your Terraform setup right now. I read through the file and it seems that it's supposed to bootstrap the master and worker nodes so that there's a single master node that initializes the Kubernetes cluster (kubeadm init
) and teh other master nodes intelligently join the initialized Kubernetes cluster (kubeadm join
). Could you explain whether the script works as intended? And why aren't you using the script and instead resorting manual CLI commands? Thanks!The text was updated successfully, but these errors were encountered: