lohabuffalo.blogg.se

Install kubeadm centos 7
Install kubeadm centos 7









Note: The host name cannot be underlined, only a midline Modify host name hostnamectl set-hostname k8s-master It will not be described here, please refer to the link: dev/mapper/cl-swap swap swap defaults 00 Modify the /etc/fstab file and comment out the automatic mounting of SWAP (swap is permanently closed and it will take effect after restart) # Comment out the following fields Modify the k8s.conf file cat /etc/sysctl.d/k8s.conf

install kubeadm centos 7

Vim /etc/selinux/config #Or modify/etc/sysconfig/selinux For simplicity, disable the firewall on each node: systemctl stop firewalld If each host has a firewall enabled and you need to open the ports required by each component of Kubernetes, you can check the "Check required ports" section in Installing kubeadm.

install kubeadm centos 7

Note: Please make sure that the CPU is at least 2 cores and the memory is 2G 2. It is strongly recommended to read the official documentation to understand the details of each component and object. It will be updated simultaneously with the release of each new version of Kubernetes.

#Install kubeadm centos 7 install

Kubeadm is an official tool provided by Kubernetes to quickly install and initialize Kubernetes clusters. Differences, Kubeadm update and support will be better. I finally chose the official Kubeadm, mainly because there are some different Kubernetes versions. In order to simplify these operations, many installation and configuration tools have been produced, such as Kubeadm, Kubespray, RKE and other components.

install kubeadm centos 7

Manually building a Kubernetes cluster is a very cumbersome task.









Install kubeadm centos 7