Alibaba Cloud
#
Set up Kupboard clusters#
IntroductionThis section describes how to create and configure resources to build a kupboard cluster on Alibaba Cloud.
#
ECS InstanceKupboard clusters can be configured in a variety of ways depending on the service and application. In this example, we will create 1 server for the admin cluster, 1 server for the gateway cluster, and 4 servers for the service cluster.
You need to create 6 ECS instances as the table below. OS for all instances must be Ubuntu18.04 or 20.04. The size of additional disks should change depending services or pakcages installed on the service cluster.
Cluster | Instance Type | Quantity | Boot Disk | Additional Disk |
---|---|---|---|---|
Admin | ecs.g7.large < | 1 | 50GB | N/A |
Gateway | ecs.g7.large < | 1 | 50GB | N/A |
Service | ecs.g7.large < | 4 | 50GB | 50GB < |
note
The available instance types are different by regions and zone. You need to check which instance types are similar to the specification below.
- 2 vCPUs / 4GiB MEM for Admin and Gateway
- 2 vCPUs / 8GiB MEM for Sevice
#
VPC & VSwitchWe need to create a VPC with a CIDR block 172.16.0.0/20
or 172.x.0.0/20
. VSwitch works similarly to subnets and it must be created in the same zone where the instance is created.
#
Security GroupCreate a security group for the VSwitch created above.
Cluster | Inbound | Source |
---|---|---|
All | 22 | 0.0.0.0/0 |
1 - 65535 | vswitch cidr | |
Admin | 80,443 | 0.0.0.0/0 |
Gateway | 80,443 | 0.0.0.0/0 |
Cluster | Outbound | Destination |
---|---|---|
All | 1 - 65535 | 0.0.0.0/0 |
#
SSH KeyIn order to initialize the servers, you must first register the SSH Key. A new key-pair can be generated with the command below, and the generated keys can be found in data/certs
. Go to Elastic Compute Service > Key Pairs > Create SSH Key Pair
and import the public key.
Then you can use the following command to initialize user settings.
#
DataMove to Data