Creating a multinode cluster using kubeadm
In this section, I'll introduce you to kubeadm
, the recommended tool for creating Kubernetes clusters on all environments. It is still under active development, but it is the way to go because it is part of Kubernetes, and will always embody best practices. To make it accessible for the entire cluster, we will base it on VMs. This section is for readers who want a hands-on experience of deploying a multi-node cluster.
Setting expectations
Before embarking on this journey, I want to make it clear that it might not be a smooth ride. kubeadm
has a difficult task: It has to follow the evolution of Kubernetes itself, which is a moving target. As a result, it is not always stable. When I wrote the first edition of Mastering Kubernetes, I had to dig deep and hunt for various workarounds to make it work. Guess what? I had to do the same thing for the second edition. Be prepared to make some adjustments and ask around. If you want a more streamlined solution...