Cloudify Tutorial
A single open source, end-to-end platform designed to transform network services and applications, connect branches, deploy and manage multi-access edge and IoT devices, break down silos and deliver all services on-demand – automatically, at scale.
文档
-
首先在 cloudify-dev 有一个详细的关于 cloudify 的开发说明,包括他们各个模块之间的关系,环境配置,开发流程管理,开发过程中的一些实用脚本。
-
Cloudify 最重要的三个仓库为 cloudify-cli (Cloudify’s Command Line Interface), cloudify-manager (Cloudify’s manager REST service, Cloudify system-workflows, Integration tests), cloudify-common (DSL parsing package, DSL Parser, REST Client, Script Plugin)
-
Cloudify 的 restful API 的在线地址在这里,文档源码在这里,文档写的非常详细。文档是用的
Hugo
来生成的,将代码克隆下来之后,直接运行hugo
就可以看到了。我的博客也是用这个搭建的,非常好用。 -
Cloudify 的 Python API 的在线地址在这里,文档源码在这里。文档是用的
ReadTheDocs
来生成的。在根目录下运行make dev && make docs
然后serve docs/_build/html
就直接可以在本地访问到文档。 -
cloudify-plugins-common 的在线地址在这里,文档源码在这里。文档是用的
ReadTheDocs
来生成的。 -
DSL Specification BluePrint 的语法规则。
-
Script Plugin The Script plugin can be used to map node life-cycle operations and workflows to scripts that are included in your blueprint. Scripts can be written in Python, bash, ruby, and so on.
API Authentication1
Starting from Cloudify 4.0.0, all restful API communication to the server requires:
-
Authentication using user credentials.
-
Tenant name, representing the scope of the request.
Every Cloudify Manager has a default tenant, called default_tenant
. The default_tenant
tenant is created during bootstrap.
In addition to the default_tenant
, every Cloudify Manager includes a bootstrap Admin. The bootstrap Admin is the Admin user that created during the bootstrap.
In addition to the user credentials, every request must also specify a tenant in the header.
In the case of using the Cloudify community edition or if you have not created any new tenant, you can use the default_tenant
as the tenant for the request.
资源更新
资源的更新可能会涉及到 Blueprints
的更新,Deployment
的更新。
实例
部署的服务器资源至少是 2C2G 的才不至于会卡。
|
|
部署一个 Hello World 的应用进去。
|
|
访问 http://104.207.134.211:8000/
可以看到一个正确的结果。
|
|
|
|
|
|
|
|
|
|
|
|
-
Cloudify REST API V3.1 https://docs.cloudify.co/api/v3.1/#cloudify-rest-api-v3-1 ↩︎