使用sealos部署Kubernetes

注意事项

1.需要纯净的linux系统、ubunt16.04,centos7
2.新版本sealos离线包自带docker、如没安装docker,会自动安装
3.尽量使用新版本sealos
4.必须同步服务器时间,时间保持一致
5.master节点CPU必须2c以上
6.cni组件选择cilium时要求内核版本不低于5.4
网络参数:

pod的IP地址段,也称为cidr
#podcidr参数指定自定义pod网段 如
--podcidr 10.244.0.0/16

#svccidr参数指定clusterip网段 如
--svccidr 10.93.0.0/12

seals 架构

在这里插入图片描述

使用sealos部署k8s

1、环境准备

关闭firwalld(所有节点执行)

[root@VM-4-11-centos ~]# systemctl stop firewalld
[root@VM-4-11-centos ~]# systemctl disable firewalld

关闭selinux(所有节点执行)

[root@VM-4-11-centos ~]# setenforce 0
[root@VM-4-11-centos ~]# vim /etc/selinux/config
修改SELINUX=enforcing 为 SELINUX=disabled

配置所有主机


版权声明:本文为weixin_52173654原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。