The method of deploying a Kubernetes cluster on CentOS7.2 using Kubeadm
This article refers to the article on the kubernetes official website, Installing Kubernetes on Linux with kubeadm uses Kubeadm to deploy Kuebernetes clusters in CentOS7.2, and solves some problems encountered when deploying according to this document.
Operating system version
# cat / etc/redhat-release CentOS Linux release 7.2.1511 (Core)
Kernel version
# uname-r3.10.0-327.el7.x86_64
Cluster node
192.168.120.122 kube-master192.168.120.123 kube-agent1192.168.120.124 kube-agent2192.168.120.125 kube-agent3
That is, the cluster consists of one control node and three working nodes.
Preparation before deployment
Configure access to google-related websites
The software package used in this deployment is provided by google-related sources, so the cluster node must be able to access the public network. Please figure out how to configure it.
Turn off the firewall
# systemctl stop firewalld.service & & systemctl disable firewalld.service
Disable SELinux
# setenforce matching sed-i.bak 's etc/selinux/config'/ etc/selinux/config
Configure yum Feed
# cat