mirror of
https://github.com/labring/sealos.git
synced 2026-09-24 15:46:19 +08:00
update docs
This commit is contained in:
@@ -182,3 +182,37 @@ sealos install --pkg-url dashboard.tar --label role=master --cmd "APPLY kubectl
|
||||
## ~/.sealos/config.yaml
|
||||
|
||||
sealos init时把相关参数存入配置文件, 供执行clean, install命令使用
|
||||
|
||||
# dashboard 包制作事例
|
||||
|
||||
1. 创建工作目录
|
||||
|
||||
```cassandraql
|
||||
mkdir dashboard && cd dashboard
|
||||
```
|
||||
|
||||
2. 编辑配置文件
|
||||
|
||||
```cassandraql
|
||||
echo "LOAD docker load -i image.tar" >> config
|
||||
echo "APPLY kubectl apply -f dashboard.yaml" >> config
|
||||
```
|
||||
|
||||
3. 下载yaml文件与保存镜像
|
||||
|
||||
```cassandraql
|
||||
wget https://..../dashboard.yaml
|
||||
docker save -o image.tar dashboard:latest
|
||||
```
|
||||
|
||||
4. 打包
|
||||
|
||||
```cassandraql
|
||||
tar cvf dashboard.tar config dashboard.yaml image.tar
|
||||
```
|
||||
|
||||
5. 安装使用
|
||||
|
||||
```cassandraql
|
||||
sealos install --pkg-url ./dashboard.tar
|
||||
```
|
||||
Reference in New Issue
Block a user