The following prerequisites must be met before making the blockchain network available to administration and monitoring tools and applications outside the container cluster.
- Possess the externally accessible Internet address. You can either bind an EIP to a worker node or create a Server Load Balancer instance (add a worker node on the backend server) and use its Internet address. Preparation introduces how to bind an EIP to a worker node, see Bind an EIP to a worker node.
- Allows the inbound access from the NodePort in the external port list by configuring the ECS security group rules.
- Log on to the ECS console.
- Click in the left-side navigation pane.
- Select the region in which your Kubernetes cluster resides.
The security group name of the Kubernetes cluster contains k8s_sg. Click
Configure Rules at the right of the security group.
If no security group rules under the Inbound tab meets the requirements, click
Add Security Group Rules. The Add Security Group Rules dialog box appears. Complete the configurations. Complete
- Select Inbound from the Rule Direction drop-down list.
- Enter the suitable Port Range according to the external port NodePort range of the blockchain network.
- Enter the suitable address range in the Authorization Object field based on the actual access requirements.
- Click OK. The security group rule is successfully added to the list and takes effect immediately.