update docs

This commit is contained in:
fanux
2019-10-18 09:40:56 +08:00
parent d51219f383
commit f84f80dc95
+34
View File
@@ -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
```