Ports needs to be allowed on Kubernetes Master node #firewall-cmd -add-port=/udp -permanent #systemctl disable -now firewalld #disable firewalld
We can disable firewalld on all the Kubernetes nodes or if you have an active firewalld, below firewalld rules needs to be enabled on Master and Worker nodes. #systemctl start docker Configure Firewalld
Install kubeadm centos 7 install#
#yum install kubeadm docker -y #systemctl enable kubelet Once kubeadm and docker are installed, we need to enable both the services so that they can start automatically on reboot and start. We will be installing the most popular container engine platform that is docker in this tutorial. Since Kubernetes repository is now available for centos, we will configure yum to use the same. #setenforce 0 #vi /etc/sysconfig/selinuxįor Kubernetes to work smoothly, lets disable swap # swapoff -a Next we need to disable Selinux, this can be done temporarily by using below command or can be done permanently by disabling in the selinux configuration. # vi /etc/hostsĪll the servers should be able to ping each other. We need to add hostname entries to DNS server or we can use /etc/hosts for hostname to IP resolution. Node2: 192.168.136.135 -> Īll the below steps need to be run / performed on all the 3 kubernetes nodes.We are having 3 servers with below IP configuration All the servers should have networking configured and should be able to communicate with each other.Master node should have at least 2GB of ram so that it can run smoothly without glitches.Initializing Kubernetes Cluster Control plane.