diff --git a/Projects/Developer/container_app_guide.md b/Projects/Developer/container_app_guide.md index 7f5074937f068feec18151d409ee9b13f0e131b5..bf4b7c6a8d4a806f7d998070e332f8a23d5ec76c 100644 --- a/Projects/Developer/container_app_guide.md +++ b/Projects/Developer/container_app_guide.md @@ -12,7 +12,7 @@ ## 配置沙箱环境:developer新增K8S沙箱环境 **1.** 利用admin账户登录Developer平台,打开集成开发-系统管理-沙箱管理,点击右上角新增沙箱环境按钮,添加k8的沙箱
-![输入图片说明](/uploads/images/2021/0701/143746_1e95d967_5504908.png "k8s.png")
+![输入图片说明](../../uploads/images/2021/developer/k8s%E6%B2%99%E7%AE%B1%E9%85%8D%E7%BD%AE.png) **2.** 参数说明:
**名称** 边缘节点(沙箱环境)的名称      **lcmIp** lcmcontroller的ip地址
**mecHost:** 边缘节点的IP地址      **端口号** lcmcontroller对外暴露的端口号
@@ -25,37 +25,32 @@ ## 容器应用开发 ### 新建容器应用项目,主要的是选择容器属性,因为涉及到后续的发布能力,以新建项目为例作出说明 #### 1. 进入首页,点击应用孵化图标 - +![输入图片说明](../../uploads/images/2021/developer/%E5%BA%94%E7%94%A8%E5%AD%B5%E5%8C%96.png) #### 2. 点击创建应用,记得负载类型选择容器 +![输入图片说明](../../uploads/images/2021/developer/%E5%AE%B9%E5%99%A8%E9%A1%B9%E7%9B%AE%E5%88%9B%E5%BB%BA.png) #### 3. 点击能力中心,可以选择平台已有能力或者开发者已发布的能力 - +![输入图片说明](../../uploads/images/2021/developer/%E8%83%BD%E5%8A%9B%E9%80%89%E6%8B%A9.png) #### 4. 点击选择沙箱,选择可用的沙箱,然后上传部署脚本 - +![输入图片说明](../../uploads/images/2021/developer/%E5%AE%B9%E5%99%A8-%E6%B2%99%E7%AE%B1%E9%80%89%E6%8B%A9.png) #### 5. 接第四步,上传脚本完成,点击右侧,容器启动按钮,开始部署,部署完成,释放环境,点击右下角完成 - +![输入图片说明](../../uploads/images/2021/developer/%E5%AE%B9%E5%99%A8-%E9%83%A8%E7%BD%B2%E8%B0%83%E6%B5%8B.png) #### 6. 点击制作镜像,可以配置需要发布的服务,点击右下角打包预览,打包完成,点击右上角,返回孵化流程 - +![输入图片说明](../../uploads/images/2021/developer/%E5%AE%B9%E5%99%A8-%E5%88%B6%E4%BD%9C%E9%95%9C%E5%83%8F.png) ####7. 点击测试认证,选择对应的测试场景,点击右下角开始测试,等待测试完成 - +![输入图片说明](../../uploads/images/2021/developer/%E5%AE%B9%E5%99%A8-%E6%B5%8B%E8%AF%95%E8%AE%A4%E8%AF%81.png) #### 8. 发布,测试完成,点击测试用例页面上部的发布按钮,发布应用到应用仓库 #### 9. 点击应用仓库,查看已发布应用 - -## 常见问题 +![输入图片说明](../../uploads/images/2021/developer/%E5%AE%B9%E5%99%A8-%E5%BA%94%E7%94%A8%E4%BB%93%E5%BA%93.png) +## FAQ 常见问题 #### 1.开发者对容器应用部署调测时,可以下载开发者平台提供的样例yaml,根据自己需要部署的应用,修改样例yaml并上传使用。
#### 2.开发者平台会对上传的yaml中的镜像信息进行校验,yaml中配置的镜像不拘泥于固定格式,但是需要注意的是镜像需要为EdgeGallery仓库已有镜像。
#### 3.如果yaml中配置的镜像形式为EdgeGallery仓库镜像形式,请提前上传镜像到EdgeGallery仓库,防止容器应用部署调测失败。
-#### 4.如果yaml中配置的镜像形式为EdgeGallery仓库镜像形式,建议的镜像配置格式如下:
- -#### ‘{{.Values.imagelocation.domainname}}/{{.Values.imagelocation.project}}/xxx:xxx’
- -#### 5.请尽可能的配置yaml中的namespace,并确保其格式为’{{ .Values.appconfig.appnamespace }}’。
- -#### 6.尽可能一次性配置正确,确保yaml中的关键参数配置正确,例如暴露的端口,配置的环境变量等等。
+#### 4.尽可能一次性配置正确,确保yaml中的关键参数配置正确,例如暴露的端口,配置的环境变量等等。
## 容器应用与MepAgent的集成 ### 参考文档:[APP通过MEP调用](https://gitee.com/edgegallery/docs/blob/master/Projects/MEP/app%E9%80%9A%E8%BF%87MEP%E8%B0%83%E7%94%A8.md) \ No newline at end of file diff --git "a/uploads/images/2021/developer/k8s\346\262\231\347\256\261\351\205\215\347\275\256.png" "b/uploads/images/2021/developer/k8s\346\262\231\347\256\261\351\205\215\347\275\256.png" new file mode 100644 index 0000000000000000000000000000000000000000..70595dfd89cd0542812016a75552cf40ae13ecf2 Binary files /dev/null and "b/uploads/images/2021/developer/k8s\346\262\231\347\256\261\351\205\215\347\275\256.png" differ diff --git "a/uploads/images/2021/developer/\345\256\271\345\231\250-\345\210\266\344\275\234\351\225\234\345\203\217.png" "b/uploads/images/2021/developer/\345\256\271\345\231\250-\345\210\266\344\275\234\351\225\234\345\203\217.png" new file mode 100644 index 0000000000000000000000000000000000000000..31cda5cd6f7b5696b056f7555605d056b0c44de5 Binary files /dev/null and "b/uploads/images/2021/developer/\345\256\271\345\231\250-\345\210\266\344\275\234\351\225\234\345\203\217.png" differ diff --git "a/uploads/images/2021/developer/\345\256\271\345\231\250-\345\272\224\347\224\250\344\273\223\345\272\223.png" "b/uploads/images/2021/developer/\345\256\271\345\231\250-\345\272\224\347\224\250\344\273\223\345\272\223.png" new file mode 100644 index 0000000000000000000000000000000000000000..47b1472cf02e53f10d9e988f3e480f07b169cacc Binary files /dev/null and "b/uploads/images/2021/developer/\345\256\271\345\231\250-\345\272\224\347\224\250\344\273\223\345\272\223.png" differ diff --git "a/uploads/images/2021/developer/\345\256\271\345\231\250-\346\262\231\347\256\261\351\200\211\346\213\251.png" "b/uploads/images/2021/developer/\345\256\271\345\231\250-\346\262\231\347\256\261\351\200\211\346\213\251.png" new file mode 100644 index 0000000000000000000000000000000000000000..fb3abb7256e22f5d666c4bca9b75b7fb1c788aa6 Binary files /dev/null and "b/uploads/images/2021/developer/\345\256\271\345\231\250-\346\262\231\347\256\261\351\200\211\346\213\251.png" differ diff --git "a/uploads/images/2021/developer/\345\256\271\345\231\250-\346\265\213\350\257\225\350\256\244\350\257\201.png" "b/uploads/images/2021/developer/\345\256\271\345\231\250-\346\265\213\350\257\225\350\256\244\350\257\201.png" new file mode 100644 index 0000000000000000000000000000000000000000..8d3d8a7c5bb758b9a7d91fb7fdf9988ebd7384b9 Binary files /dev/null and "b/uploads/images/2021/developer/\345\256\271\345\231\250-\346\265\213\350\257\225\350\256\244\350\257\201.png" differ diff --git "a/uploads/images/2021/developer/\345\256\271\345\231\250-\351\203\250\347\275\262\350\260\203\346\265\213.png" "b/uploads/images/2021/developer/\345\256\271\345\231\250-\351\203\250\347\275\262\350\260\203\346\265\213.png" new file mode 100644 index 0000000000000000000000000000000000000000..b51271c4927799363026b556df753cfbc1c5780f Binary files /dev/null and "b/uploads/images/2021/developer/\345\256\271\345\231\250-\351\203\250\347\275\262\350\260\203\346\265\213.png" differ diff --git "a/uploads/images/2021/developer/\345\256\271\345\231\250\351\241\271\347\233\256\345\210\233\345\273\272.png" "b/uploads/images/2021/developer/\345\256\271\345\231\250\351\241\271\347\233\256\345\210\233\345\273\272.png" new file mode 100644 index 0000000000000000000000000000000000000000..67c6e0a67d973b8cbfade86eb7ab2f4e229943b6 Binary files /dev/null and "b/uploads/images/2021/developer/\345\256\271\345\231\250\351\241\271\347\233\256\345\210\233\345\273\272.png" differ diff --git "a/uploads/images/2021/developer/\345\272\224\347\224\250\345\255\265\345\214\226.png" "b/uploads/images/2021/developer/\345\272\224\347\224\250\345\255\265\345\214\226.png" index b7db61444e37b5aee2bf9572c639a30406a6507e..48b65549e4d486cd867e5dea255a051c2bc2bef9 100644 Binary files "a/uploads/images/2021/developer/\345\272\224\347\224\250\345\255\265\345\214\226.png" and "b/uploads/images/2021/developer/\345\272\224\347\224\250\345\255\265\345\214\226.png" differ diff --git "a/uploads/images/2021/developer/\350\203\275\345\212\233\351\200\211\346\213\251.png" "b/uploads/images/2021/developer/\350\203\275\345\212\233\351\200\211\346\213\251.png" new file mode 100644 index 0000000000000000000000000000000000000000..e2e27e74ae0a2d538fcba184b8effeb486939a56 Binary files /dev/null and "b/uploads/images/2021/developer/\350\203\275\345\212\233\351\200\211\346\213\251.png" differ