Before using the Alibaba Cloud Container Service blockchain solution, complete the corresponding environment preparations, which mainly includes:
- Create a Kubernetes cluster
- Bind an Elastic IP (EIP) to a worker node
- Create a file system and add a mount point
This document introduces how to prepare the environment.
Create a Kubernetes cluster
The blockchain solution deployment is based on a Kubernetes cluster built by ECS. For how to create a Kubernetes cluster, see Create a Kubernetes cluster . When creating a Kubernetes cluster, you must complete the following key configurations to make sure the blockchain solution can be deployed successfully.
- Region: The Kubernetes cluster and the NAS file system must be in the same region. Make sure the selected region supports both the Kubernetes cluster and the NAS file system (intersection of both). For the list of regions that support the NAS file system, see .
- Network type: Select Virtual Private Cloud (VPC).
- SSH login: For ease of management, select the Enable SSH access for Internet check box.
- Node configurations: We recommend that you use the default settings (such as three master nodes and three worker nodes). You can also configure the nodes as per your needs. The numbers of softwares, services, and containers deployed by the blockchain network are large. Therefore, make sure the cluster resources can meet the requirements.
Click Create Cluster. Wait several minutes (depends on the number of ECS instances), until the Kubernetes cluster and the ECS instances are created.
After the Kubernetes cluster is created, click Manage at the right of the created cluster on the Cluster List page. On the section, record the Master node SSH IP address, which is an Internet address and used as the external address.
Clickin the left-side navigation pane. Record the IP addresses (intranet addresses) of the cluster nodes (both master nodes and worker nodes) for later usage.
Bind an EIP to a worker node
This section introduces the prerequisite for the access to the blockchain network from outside the cluster, which creates and binds an EIP to a worker node of the Kubernetes cluster.
- Log on to the Elastic IP Address (EIP) console.
- Click Elastic IP Addresses in the left-side navigation pane.
- Click Create EIP.
- Select the region in which the Kubernetes cluster resides. Complete the other configurations as per your needs. Click Buy Now.
- After activating the EIP, wait until the purchased EIP is displayed in the list and then click Bind at the right of the EIP.
- Select ECS Instance from the Instance Type drop-down list and select a worker node (the instance name begins with node, instead of master) from the ECS Instance drop-down list. Click OK.
- After binding the EIP to the worker node, record the IP address of the purchased EIP on the Elastic IP Addresses page.
Create a file system and add a mount point
For how to create a file system, see Create a file system . When creating a file system, you must complete the following key configurations to make sure the blockchain solution can be deployed successfully.
- Region: Select the region in which the container cluster resides.
- Protocol Type: Select NFS.
For more information, see Add a mount point.
After adding a mount point, click Manage at the right of the file system.
Record the Mount Address of the mount point.