基于 buildah + k3s 部署 ocboot
简介
不少用户反馈,ocboot目前的 k8s套件版本过低(v1.15),希望能够推出更高版本。为此,我们推出了基于buildah+k3s (v1.28)的部署方式。
warning
请注意,目前本方案处于测试阶段,请在充分测试之后,再用于您的生产环境。
本安装方案,不再依赖目标机器上的ansible,而是把 ansibie 及其依赖集成在buildah 镜像里。
部署方式
请使用如下命令部署。请参考注释部分。
# Ensure that Git is installed
# Clone the master branch of ocboot. Note: Currently, the deployment method of k3s is only implemented in the master branch of ocboot.
git clone https://github.com/yunionio/ocboot.git
# installation of buildah
./scripts/install-buildah.sh
# The default version cloud management is v3.11.x. If you need to deploy a different version, please modify the VERSION file.
# Get the ip address of current server
# In the event of complex network scenarios (multiple network cards, multiple IPs), you can also manually specify the IP address.
IP=$(ip route get 1 | awk '{print $7}' | sort -u | head -1)
./ocboot.sh run.py cmp $IP --k3s