Naver Cloud Platform
#
Set up Kupboard clusters#
IntroductionThis section describes how to create and configure g2 instances to build a kupboard cluster on Naver Cloud Platform.
#
g2 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 six g2 instances as the table below. OS for all instances must be Ubuntu18.04 or 20.04. The size of additional disks should change depending on services or packages installed on the service cluster.
Cluster | Instance Type | Quantity | Boot Disk | Additional Disk |
---|---|---|---|---|
Admin | g2-standard < | 1 | 50GB | N/A |
Gateway | g2-standard < | 1 | 50GB | N/A |
Service | g2-standard < | 4 | 50GB | 50GB < |
g2-standard
vCPU 2, memory 8G
#
VPC NetworkWe need to create a VPC with a subnet 172.16.0.0/24
.
caution
The subnet range must be 172.16.0.0/24
. Otherwise kupboard will not work properly.
#
FirewallCreate a firewall for the subnet created above.
Cluster | Inbound | Source |
---|---|---|
All | 22 | 0.0.0.0/0 |
1 - 65535 | 172.16.0.0/24 | |
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 register a SSH Key. A new key-pair is generated with the kupboard key generator(*Other key generators such as openssl or Putty Key Generator can be used).
The generated key-pair is located in data/certs
.
They should be renamed to ssh.*
.
The Naver Cloud provides the Init Script
service so that an initial script can be executed as a server completes its first booting. Below script is for the automatic ssh login. The content of SSH Public Key
is from the ssh.pub
.
Now, the server can be logged in with the root
account at data/certs
.
At the user initialization stage of kupboard setup, the root
account login is automatically done.
#
Server Configuration Result#
VPC platform#
Init Script#
VPC#
Subnet#
Server#
DataMove to Data