How to Install and Configure Kubernetes Cluster and Docker on CentOS8/RHEL8
Kubernetes is an open source platform for managing containerized applications. It allows you to manage, scale, and automatically deploy your containerized applications in the clustered environment. Kubernetes is developed by Google.
With Kubernetes, you can orchestrate containers across multiple hosts, scale the containerized applications with all resources on the fly, and have a centralized container management environment.
In this tutorial, I will show you step-by-step how to install and configure Kubernetes on CentOS version 8. We will be using 1 server 'KubeMaster' as the Kubernetes Master Node, and 2 servers as Kubernetes workers, 'minion-1' and 'minion-2'.
- KubeMaster: 192.168.4.130
- minion-1 : 192.168.4.131
- minion-2 : 192.168.4.132
Prepare Hostname, Firewall, swap and SELinuxOn your CentOS 8 Master-Node, set the system hostname and update DNS in your /etc/hosts file.
Enable br_netfilterFor our next trick, we'll be enabling the br_netfilter kernel module on all three servers. This is done with the following commands:
Install Docker :
Set up the Kubernetes Control Plane
Setting up POD Networking:
Adding Worker Nodes to Kubernetes Cluster:
Prepare Hostname, Firewall, swap and SELinuxFirst set the hostname on your worker-node-1 and worker-node-2, and then add the host entries to the /etc/hosts file.
Setup Docker-CE and Kubernetes Repo
Join the Worker Node to the Kubernetes Cluster
|All Nodes status from Master Server|