diff --git a/操作文档/K3S.md b/操作文档/K3S.md index 24e816d3..7b4152bc 100644 --- a/操作文档/K3S.md +++ b/操作文档/K3S.md @@ -75,9 +75,37 @@ Please enter your node ID: https://github.com/cnrancher/autok3s # 最新版本 0.9.3 -# 安装AutoK3S -docker run -itd --restart=unless-stopped -p 8080:8080 cnrancher/autok3s:v0.9.3 +# 安装 AutoK3S命令 +curl –sfL \ + https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | \ + INSTALL_K3S_MIRROR=cn sh -s - \ + --system-default-registry "registry.cn-hangzhou.aliyuncs.com" + + +``` + +#### + +#### 创建$k3s$集群 + +容器启动完成以后访问服务器 http://10.10.14.100:8080 然后点击$Core/Clusters$ + +![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202409111356221.png) + +选择$Native$ 创建一个集群。 安装的基本参数设置 设置$master$节点$ip$ ,等待$k3s$安装部署完成 需要一段时间。 + +```shell +# 用命令行创建 +autok3s create --provider native --docker-script https://get.docker.com --k3s-channel stable --k3s-install-script https://get.k3s.io --name myk3s --rollback --ssh-password DsideaL4r5t6y7u --ssh-port 22 --ssh-user root --master-ips 10.10.14.100 +``` + + +![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202409111405874.png) + +三、使用Kuboard 管理k3s 集群 + +``` # 安装k3s的管理界面 Kuboard V3 # https://kuboard.cn/ docker run -d \ @@ -101,29 +129,7 @@ admin Kuboard123 ``` -#### - -#### 使用$autok3s$ 创建$k3s$集群 -容器启动完成以后访问服务器 http://10.10.14.100:8080 然后点击$Core/Clusters$ - -![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202409111356221.png) - -选择$Native$ 创建一个集群。 安装的基本参数设置 设置$master$节点$ip$ ,等待$k3s$安装部署完成 需要一段时间。 - -```shell -# 安装 AutoK3S命令 -curl -sS https://rancher-mirror.rancher.cn/autok3s/install.sh | INSTALL_AUTOK3S_MIRROR=cn sh - -# 用命令行创建 -autok3s create --provider native --docker-script https://get.docker.com --k3s-channel stable --k3s-install-script https://get.k3s.io --name myk3s --rollback --ssh-password DsideaL4r5t6y7u --ssh-port 22 --ssh-user root --master-ips 10.10.14.100 -``` - - - -![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202409111405874.png) - -三、使用Kuboard 管理k3s 集群 登录成功进入Kuboard 界面 , 点击Kubernetes的添加集群