写点什么

centos 7.6 安装 sealos 和单机集群

作者:麦兜
  • 2023-12-21
    浙江
  • 本文字数:1239 字

    阅读完需:约 4 分钟

升级 7.6 内核

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.orgrpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpmyum --enablerepo=elrepo-kernel install kernel-lt -y #稳定版打开并编辑 /etc/default/grub 并设置 GRUB_DEFAULT=0。执行命令:grub2-mkconfig -o /boot/grub2/grub.cfgreboot
复制代码


安装 sealos

VERSION=`curl -s https://api.github.com/repos/labring/sealos/releases/latest | grep -oE '"tag_name": "[^"]+"' | head -n1 | cut -d'"' -f4`
echo $VERSION
curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring/sealos/main/scripts/install.sh | PROXY_PREFIX=https://mirror.ghproxy.com sh -s ${VERSION} labring/sealos
复制代码


部署集群

sealos run registry.cn-shanghai.aliyuncs.com/labring/kubernetes:v1.23.12 registry.cn-shanghai.aliyuncs.com/labring/helm:v3.9.4 registry.cn-shanghai.aliyuncs.com/labring/cilium:v1.13.4 --single
复制代码

单机版本部署集群


最后会显示安装结果:

2023-12-21T00:33:14 info Executing pipeline Join in CreateProcessor.2023-12-21T00:33:14 info Executing pipeline RunGuest in CreateProcessor.ℹ️  Using Cilium version 1.13.4 Auto-detected cluster name: kubernetes Auto-detected datapath mode: tunnel Auto-detected kube-proxy has been installed2023-12-21T00:33:16 info succeeded in creating a new cluster, enjoy it!2023-12-21T00:33:16 info       ___           ___           ___           ___       ___           ___     /\  \         /\  \         /\  \         /\__\     /\  \         /\  \    /::\  \       /::\  \       /::\  \       /:/  /    /::\  \       /::\  \   /:/\ \  \     /:/\:\  \     /:/\:\  \     /:/  /    /:/\:\  \     /:/\ \  \  _\:\~\ \  \   /::\~\:\  \   /::\~\:\  \   /:/  /    /:/  \:\  \   _\:\~\ \  \ /\ \:\ \ \__\ /:/\:\ \:\__\ /:/\:\ \:\__\ /:/__/    /:/__/ \:\__\ /\ \:\ \ \__\ \:\ \:\ \/__/ \:\~\:\ \/__/ \/__\:\/:/  / \:\  \    \:\  \ /:/  / \:\ \:\ \/__/  \:\ \:\__\    \:\ \:\__\        \::/  /   \:\  \    \:\  /:/  /   \:\ \:\__\   \:\/:/  /     \:\ \/__/        /:/  /     \:\  \    \:\/:/  /     \:\/:/  /    \::/  /       \:\__\         /:/  /       \:\__\    \::/  /       \::/  /     \/__/         \/__/         \/__/         \/__/     \/__/         \/__/
Website: https://www.sealos.io/ Address: github.com/labring/sealos Version: 4.3.7-f39b2339
复制代码


参考文档:

https://sealos.run/docs/self-hosting/lifecycle-management/quick-start/install-cli

https://sealos.run/docs/self-hosting/lifecycle-management/quick-start/deploy-kubernetes

用户头像

麦兜

关注

还未添加个人签名 2023-01-19 加入

还未添加个人简介

评论

发布
暂无评论
centos 7.6安装sealos和单机集群_麦兜_InfoQ写作社区