In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use kubeadm to install kubernetes 1.13 high-availability cluster. I hope you will get something after reading this article. Let's discuss it together.
Kubeadm installation kubernetes 1.13 High availability Cluster initialization Cluster: configure the hosts file
Vim / etc/hosts
192.168.3.147test-master01192.168.3.148test-master02192.168.3.149test-master03192.168.3.150test-work01 configuration secret-free login ssh-keygenssh-copy-id test-master01ssh-copy-id test-master02ssh-copy-id test-master03ssh-copy-id test-work01 setting parameters
Turn off the firewall
Systemctl stop firewalldsystemctl disable firewalld
Close swap
Swapoff-ased-I'/ swap / s / ^\ (. *\) $/ #\ 1Universe g'/ etc/fstab
Modify the / etc/fstab file, comment out the automatic mount of SWAP, and use free-m to confirm that swap is closed.
Close selinux
Sed-i 's etc/sysconfig/selinuxsetenforce0 SELINUXPROPERVERVERVERVINE
Configure forwarding-related parameters, otherwise errors may occur
Cat / etc/sysconfig/modules/ipvs.modules / tmp/crontab2.tmpcrontab / tmp/crontab2.tmpsystemctl start ntpdate.serviceecho "* soft nofile 65536" > > / etc/security/limits.confecho "* hard nofile 65536" > > / etc/security/limits.confecho "* soft nproc 65536" > > / etc/security/limits.confecho "* hard nproc 65536" > / etc/security/limits.confecho "* soft memlock unlimited" > > / etc/security/limits.confecho "* hard memlock unlimited" > > / etc/security/ Limits.conf installs dockeryum install-y epel-releaseyum install-y yum-utils device-mapper-persistent-data lvm2 net-tools conntrack-toolswget vim ntpdate libseccomp libtool-ltdltelnet rsync bind-utilsyum install-y https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/Packages/docker-ce-18.06.1.ce-3.el7.x86_64.rpm to configure docker domestic image:
All nodes install docker
Edit / etc/docker/daemon.json and add the following line
{"registry-mirrors": ["https://registry.docker-cn.com"]}"
Restart docker
Systemctl daemon-reloadsystemctl enable dockersystemctl start docker
Note: if you use the way overlay2 is written:
Daemon.json {"log-driver": "json-file", "log-opts": {"max-size": "100m", "max-file": "10"}, "registry-mirrors": ["https://pqbap4ya.mirror.aliyuncs.com"]," storage-driver ":" overlay2 "," storage-opts ": [" overlay2.override_kernel_check=true "]}
If you want to use overlay2, the prerequisite is to use ext4. If you use xfs, you need to format the disk with the parameter mkfs.xfs-n ftype=1 / path/to/your/device, and the parameter ftype=1 needs to be configured to 1.
Install keepalived+haproxy
Three master nodes
Slightly
VIP: 192.168.3.80
Install kubeadm, kubelet and kubectl
All nodes execute
Set yum source cat kubeadm-config.yaml
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.