5 minutes to install k8s cluster-v1.25.0 (sealos+kuboad)

The sealos+kuboad used to build is actually installed by kubeadm

The go language used by Sealos is compiled and installed using kubeadm. It takes about 5 minutes to complete the configuration. There is no need to configure kernel routing and forwarding (he will help us configure it)

Kuboad domestically developed monitor (dashboad used by k8s)

Early preparation:

  1. Configure network card host name information

IP

host name

Function

192.168.88.11

Master01

master node

192.168.88.12

Master02

master node

192.168.88.13

Master03

master node

192.168.88.21

Node01

work node

192.168.88.22

Node02

work node

2. Close firewalld and selinux, close swap, vim /etc/fstab comment fstab about swap partition

sed -ri 's/.*swap.*/#&/' /etc/fstab

swapoff -a && sysctl -w vm.swappiness=0

3. Configure time synchronization (chrony time synchronization can also be used)

yum -y install ntpdate

crontab -e

0 */1 * * * ntpdate time1.aliyun.com

Install a kubernetes cluster

Reference documents:

Releases · labring/sealos · GitHub

Introduction | sealos     Chinese Documentation

访问网页,选择版本,下载sealos
# wget  https://github.com/labring/sealos/releases/download/v4.1.3/sealos_4.1.3_linux_amd64.tar.gz
解压并放入命令目录
# tar -zxvf sealos_4.1.3_linux_amd64.tar.gz sealos &&  chmod +x sealos && mv sealos /usr/bin
创建集群(暂时只在测试环境搭建)
sealos run labring/kubernetes:v1.25.0 labring/helm:v3.8.2 labring/calico:v3.24.1 --masters 192.168.88.11,192.168.88.12,192.168.88.13  --nodes 192.168.88.21,192.168.88.22 -p <your-ssh-passwd>

Wait about 5 minutes for the installation to complete, and directly use kubectl get nodes to view the nodes. 

Install kuboard monitoring and use docker to build a web monitoring container.

Kuboard_Kubernetes tutorial_K8S installation_management interface

Install Kuboard v3 - Built-in user library | Kuboard

 

Guess you like

Origin blog.csdn.net/weixin_72758284/article/details/128320951