Skip to content

Commit

Permalink
Provisioning k8s cluster on amazon/aliyun with script (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
acezen committed Mar 3, 2021
1 parent b3cf8f6 commit be74042
Show file tree
Hide file tree
Showing 3 changed files with 744 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,20 @@ and learning engines.
The image URIs for the engines are configurable, see more details in :ref:`Session`.


Deploy with AWS/Aliyun
----------------------------

In addition to local cluster setup script, we also provide a interactive script to set up a Kubernetes cluster on AWS or Aliyun. The script would output a kube config file of the Kubernetes cluster.
You can use the script as follows or use `./script/launch_cluster.py --help` to get the useage.

* AWS
.. code:: shell
pip3 install click PyYAML boto3
./scripts/launch_cluster.py --type aws --id your_access_key_id --secret your_access_key_secret --region your_region_name --output kube_config_path
* Aliyun
.. code:: shell
pip3 install click PyYAML alibabacloud_cs20151215 alibabacloud_ecs20140526 alibabacloud_vpc20160428
./scripts/launch_cluster.py --type aliyun --id your_access_key_id --secret your_access_key_secret --region your_region_id --output kube_config_path
16 changes: 16 additions & 0 deletions docs/zh/deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,19 @@ Coordinator 作为 GraphScope 后端服务的入口,通过 grpc 接收来自 P

您可以根据需求配置引擎镜像地址等参数,请在 :ref:`Session` 中参阅更多的详细信息。


### 在AWS/阿里云上部署集群
我们提供了一个可在AWS或阿里云上创建 Kubernetes 集群的交互式脚本。这一脚本可以帮助用户使用已有的集群或创建新的 Kubernetes 集群,然后输出集群的配置文件。
用法如下。你也可以通过 `./script/launch_cluster.py --help` 获得更详细的帮助信息。

* AWS
.. code:: shell
pip3 install click PyYAML boto3
./scripts/launch_cluster.py --type aws --id your_access_key_id --secret your_access_key_secret --region your_region_name --output kube_config_path
* Aliyun
.. code:: shell
pip3 install click PyYAML alibabacloud_cs20151215 alibabacloud_ecs20140526 alibabacloud_vpc20160428
./scripts/launch_cluster.py --type aliyun --id your_access_key_id --secret your_access_key_secret --region your_region_id --output kube_config_path
Loading

0 comments on commit be74042

Please sign in to comment.