风离不摆烂学习日志 Day8 Kubesphere 快速搭建

安装

systemctl disable firewalld
systemctl stop firewalld
systemctl status firewalld

swapoff -a
echo "vm.swappiness=0" >> /etc/sysctl.conf
sysctl -p /etc/sysctl.conf

rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm

yum install -y ebtables socat ipset conntrack

hostnamectl --static set-hostname master

export KKZONE=cn

curl -sfL https://get-kk.kubesphere.io | VERSION=v2.0.0 sh -

chmod +x kk

./kk create cluster --with-kubernetes v1.21.5 --with-kubesphere v3.2.1

解释

  • 关闭防火墙

  • 关闭swap分区

  • 配置epel源

  • 安装必要组件 conntrack

  • 修改hostname

  • 使用国内镜像下载

  • 安装 3.2.1 版本

验证

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