In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to build K8S in CentOS. The content of the article is of high quality. Therefore, Xiaobian shares it with you as a reference. I hope you have a certain understanding of relevant knowledge after reading this article.
Environment:
Operating System: Win10
Virtual machine: virtual box
Linux distribution: CentOS7
Linux kernel (viewed with uname -r): 3.10.0-957.el7.x86_64
ip(master) for communication between master and node nodes: 192.168.99.104
II. Install docker-ce 18.09.9 (all machines)
All machines with k8s installed need docker installed, the command is as follows:
#Tools required to install docker yum install -y yum-utils device-mapper-persistent-data lvm2 #Configure Alibaba Cloud docker source yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo #Specify docker-ce yum install -y docker-ce-18.09.9-3.el7 #Start docker systemctl enable docker && systemctl start docker
III. Set k8s environmental preparation conditions (all machines)
K8s installation of the machine needs 2 CPU and 2g memory above, this is simple, in the virtual machine inside the configuration can be. Then execute the following script to prepare. This step is required for all k8s installed machines.
#close firewall systemctl disable firewall systemctl stop firewall #close selinux #temporarily disable selinux setenforce 0 #permanently close modify/etc/sysconfig/selinux file settings sed -i 's/SELINUX=permissive/SELINUX=disabled/'/etc/sysconfig/selinux sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config #disable swap partition swapoff -a #permanently disable, Open/etc/fstab and comment out swap. sed -i 's/.* swap.*/#&/ ' /etc/fstab #modify kernel parameter cat
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.