环境

阿里云,centos7.6 / 4 C / 8 G

安装步骤:

  1. 系统初始化

执行system_init.sh 初始化脚本

 cat system_init.sh 

系统初始化

$ mv /etc/yum.repos.d/Centos-Base.repo /etc/yum.repos.d/Centos-Base.repo.bak
$ wget -O /etc/yum.repos.d/Centos-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
$ yum clean all
# yum install tools
$ yum -y install wget curl telnet lsof net-tools lrzsz iftop  openssh-clients

# Close SELINUX
$ setenforce 0
$ sed -i 's/^SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config

#Close iptables
systemctl stop firewalld.service
systemctl disable firewalld.service 

2.更新pip

参考 https://github.com/kubesphere/ks-installer/issues/16
下载新版 setuptools

$ wget https://files.pythonhosted.org/packages/e5/53/92a8ac9d252ec170d9197dcf988f07e02305a06078d7e83a41ba4e3ed65b/setuptools-33.1.1-py2.py3-none-any.whl

$ pip install setuptools-33.1.1-py2.py3-none-any.whl

3.安装kubesphere All-in-One 模式(Dev 版)

$ curl -L  https://kubesphere.io/download/nightly/latest > installer.tar.gz \
&& tar -zxf installer.tar.gz && cd kubesphere-all-2.1.0-dev/scripts

大约30分钟后

4.访问页面
默认的登录信息为:
用户名:admin
密码:P@88w0rd


    Feynman 更改标题为「阿里云centos7.6安装kubesphere 2.1 dev记录

    请问这个安装需要翻墙吗?

    一直卡在这里

    6 个月 后

    一次就能安装成功,真是太幸运了