KubeSphere学习(三)Linux 上以 All-in-One 模式安装 KubeSphere

官网参考文档地址:https://kubesphere.com.cn/docs/quick-start/all-in-one-on-linux/

查看防火墙firewall的状态

firewall-cmd --state

停用防火墙firewall

systemctl stop firewalld.service

以 All-in-One 模式进行安装,需参考以下对机器硬件和操作系统的要求准备一台主机或虚拟机。

建议待安装kubesphere的Linux系统处于干净状态(不安装任何其他软件),否则可能会发生冲突。

查看Linux正在运行的内核版本

cat /proc/version

查看Linux系统相关信息

uname -a

给这个虚拟的Linux设置为2核16G

安装Kubernetes 依赖项

yum install socat
yum install conntrack
yum install ebtables
yum install ipset

执行以下命令以确保您从正确的区域下载 KubeKey

export KKZONE=cn

执行以下命令下载 KubeKey

curl -sfL https://get-kk.kubesphere.io | VERSION=v1.0.1 sh -

为 kk 添加可执行权限

chmod +x kk

执行如下一个命令即可进行安装

./kk create cluster --with-kubernetes v1.18.6 --with-kubesphere v3.0.0

使用上图中的指令,检查安装的结果

kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f

在浏览器中访问http://192.168.0.190:30880/

登录之后,查看到的主操作页面。

点击头像位置,进行密码的修改

欢迎关注个人微信公众号“我爱编程持之以恒”

猜你喜欢

转载自blog.csdn.net/chenbinqq/article/details/108620737