How to Install a Kubernetes Cluster
Last updated
Was this helpful?
Last updated
Was this helpful?
Kubernetes cluster setup can be a tricky task to complete. Most people use a single cluster setup with on a local server in a learning environment. When it comes to production-grade installation and configuration, things get more complicated and most organizations get help from IT Giants to have managed Kubernetes clusters but all come with a cost and not a neglectable one. I wanted to share my thoughts on how to set up a production-grade Kubernetes cluster in a lab environment for learning purposes.
We can summarize K8s cluster installation into 6 steps. I would like to go deeper with all the steps in the upcoming posts and will automate each step by writing Ansible roles.
Prerequisites (firewalls, selinux, swap space, etc)
Installing container runtime interface
Installing kubeadm, kubelet and kubectl
Initialize master server
Installing Container network interface
Joining worker and other control plain nodes
As you can see above, we can have multiple selections for each step as we have more than one CRI and CNI providers. I will mention how to structure each step and give freedom to users with Ansible roles in the upcoming posts series. Finally, I will wrap up the discussion by providing an example play to install and configure a Kubernetes cluster from scratch.