文章目录
- 一、推荐安装版本
- 二、使用KubeSphere安装
- 三、其它命令
- 四、相关资料
一、推荐安装版本
- K8S版本:1.21
- KubeSphere版本:3.1.0
二、使用KubeSphere安装
利用KubeSphere提供KubeKey同时安装KubeSphere和K8S,安装步骤如下:
1. Update系统环境
yum -y update
2. 防火墙firewall的状态,如果启动的话,就关闭
firewall-cmd --state
3. 关闭防火墙
systemctl stop firewalld.service
4. 安装必要的插件
yum install -y socat
yum install -y conntrack
yum install -y ebtables
yum install -y ipset
5. 执行以下命令以确保默认策略为ACCEPT
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
6. 刷新防火墙规则
iptables -F
7.指定区域
expo