Installing and Configuring Kubernetes Cluster Node on Ubuntu 20.04 LTS Server Edition

Introduction

Kubernetes has become the go-to container orchestration platform for managing and scaling containerized applications. In this guide, we will walk you through the process of installing Kubernetes cluster nodes and worker nodes on Ubuntu.

Install Kubernetes:

Step 1 : Update OS and Packages.

root User:

There are several packages we should install to ensure we have all dependencies take care of.

root User:

Disable swap if not already done. Cloud providers disable swap on their images.

Step 2 : Disable Swap

root User:

Step 3 : Load Modules

root User:

Step 4: Kernel Updates

Update kernel networking to allow necessary traffic. Be aware the shell will add a greater than sign (>) to indicate the command continues after a carriage return.

root User:

Step 5: Check Kernel Parameter Values

Ensure the changes are used by the current kernel as well

root User:

Step 6: Install the necessary key for the software to install

root User:

Step 7: Install the containerd software.

root User:

Step 8: Add a new repo for kubernetes.

root User:

Step 9: Add a GPG key for the packages

root User:

Expected Output : OK

Step 10: Update Packages.

root User:

Step 11: Install Kubernetes Binary

Install the Kubernetes software. There are regular releases, the newest of which can be used by omitting the equal sign and version information on the command line. Historically new versions have lots of changes and a good chance of a bug or five. As a result we will hold the software at the recent but stable version we install.

root User:

Step 12 : Find your Master Server Hostname and Ip address :

root User:

Step 12: Update /etc/hosts file for DNS resolution internally.

root User:

Step 13 : Create a configuration file for the cluster

root User:

Step 14 : Initialize Control panel.

root User:

Note : Save the output for Future Configuration.

Step 15 : Create Environment Mapping for Kubectl command line execution.

non-root User:

Step 16: Cilium install

non-root User:

Note : After This installation please exit and log in again and run the commands Given Below.

Conclusion

Congratulations! You have successfully installed Kubernetes cluster nodes. If you encounter any issues or have any questions, feel free to consult the official Kubernetes documentation or seek help from the vibrant Kubernetes community. Happy container orchestration!

Comment Here if you have any issues.

Leave a Reply

Your email address will not be published. Required fields are marked *