Jul 012021
折腾完各种安装方式,就需要一种可以让自己快速搭建学习的环境。
我的实验环境是CentOS 7.6
需要提前把docker先安装好。后续考虑镜像默认docker装好,内核版本升级到5.4,这样用起来就更加方便。
yum install yum-utils device-mapper-persistent-data lvm2 openssl socat conntrack ebtables ipset
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum list docker-ce --showduplicates | sort -r
yum install docker-ce-20.10.6
sudo sh -c 'echo {\"registry-mirrors\": [\"https://fz1p31b1.mirror.aliyuncs.com\"]} > /etc/docker/daemon.json'
systemctl enable --now docker
Kubernetes+Kubesphere
export KKZONE=cn
curl -sfL https://get-kk.kubesphere.io | VERSION=v1.1.0 sh -
chmod +x kk
./kk create cluster --with-kubernetes v1.20.4 --with-kubesphere v3.1.0
这样就基本装完了。
