下载ubuntu 18.04 server版,配置IP。
更新系统并安装curl和推荐依赖
所有机器上执行
sudo apt update && sudo apt upgrade -y && \
sudo apt install curl -y && \
sudo apt install socat conntrack ebtables ipset -y && \
sudo apt install ipvsadm -y
下载并安装KubeKey
在管理员PC上执行
export KKZONE=cn
curl -sfL https://get-kk.kubesphere.io | VERSION=v1.0.1 sh -
chmod +x kk
生成配置文件(使用k8s v1.18.6)
在管理员PC上执行
./kk create config --with-kubernetes v1.18.6 --with-kubesphere
修改配置文件
可参考 https://kubesphere.io/zh/docs/installing-on-linux/introduction/multioverview/
使用配置文件创建集群
在管理员PC上执行
./kk create cluster -f config-sample.yaml
等待执行完毕,即可启动。
转载请注明出处
《快速搭建kubesphere集群(基于Ubuntu 18.04 server)》https://www.ywlib.com/archives/175.html (from 一闻自习室)
本文固定链接
https://www.ywlib.com/archives/175.html
标签
kubesphere, k8s, Kubernetes