

Add the following ports by entering the listed commands. Firewalld is enabled in CentOS by default on the front-end. The nodes, containers, and pods need to be able to communicate across the cluster to perform their functions. You may need to rerun: sudo swapoff -a Step 7: Configure Firewall Next, set a worker node hostname by entering the following on the worker server: sudo hostnamectl set-hostname worker1ġ27.0.0.1 worker1 You need to do for the worker2 node too. Then enter the command: sudo hostnamectl set-hostname master-node Start by disabling the swap memory on each server: sudo swapoff -a Step 6: Assign Unique Hostname for Each Server Nodeĭecide which server to set as the master node. Verify the installation with: kubeadm versionģ.

#KUBEADM CENTOS 7 FIREWALL INSTALL#
Install the following package(s) on each node: sudo yum install -y kubelet kubeadm kubectl systemctl enable kubelet systemctl start kubeletĢ. cat /etc//kubernetes.repoġ. These 3 basic packages are required to be able to use Kubernetes. Enter the following command to retrieve the Kubernetes repositories. This step needs to be performed on the Master Node, and each Worker Node you plan on utilizing for your container setup. Kubernetes packages are not available from official CentOS 7 repositories. To start Docker if it’s not running: sudo systemctl start dockerģ. Verify Docker is running: sudo systemctl status docker Set Docker to launch at boot by entering the following: sudo systemctl enable dockerĢ. Check the installation (and version) by entering the following: docker ––version Step 2 Start and Enable Dockerġ. Repeat the process on each server that will act as a node.Ĥ. Next, install Docker with the command: sudo yum install dockerģ. Update the package list with the command: sudo yum updateĢ.
