Skip to main content

Alibaba Cloud

Set up Kupboard clusters#

Introduction#

This section describes how to create and configure resources to build a kupboard cluster on Alibaba Cloud.

ECS Instance#

Kupboard 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.

ClusterInstance TypeQuantityBoot DiskAdditional Disk
Adminecs.g7.large <150GBN/A
Gatewayecs.g7.large <150GBN/A
Serviceecs.g7.large <450GB50GB <
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 & VSwitch#

We 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 Group#

Create a security group for the VSwitch created above.

ClusterInboundSource
All220.0.0.0/0
1 - 65535vswitch cidr
Admin80,4430.0.0.0/0
Gateway80,4430.0.0.0/0
ClusterOutboundDestination
All1 - 655350.0.0.0/0

SSH Key#

In 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.

$ kupboard --keygen

Then you can use the following command to initialize user settings.

$ kupboard setup --init-user --root-username root

Data#

Move to Data

Configuration Results#

VPC#

kupboard-ali-vpc

VSwitch#

kupboard-ali-vswitch

Security Group#

kupboard-ali-security-group

SSH Key Pair#

kupboard-ali-keypair