Preparing Required Resources
To access DCS instances through a Virtual Private Cloud (VPC), create a VPC and configure security groups and subnets for it before using DCS. A VPC provides an isolated virtual network environment which you can configure and manage. Using VPCs enhances cloud resource security and simplifies network deployment.
Once you have created the required resources, you can use them for all DCS instances you subsequently create.
Creating a VPC and Subnet
- Log in to the management console.
- Click in the upper left corner and select a region and a project.
- Click Service List, and choose Network > Virtual Private Cloud to launch the VPC console.
- Click Apply for VPC.
- Create a VPC as prompted, retaining the default values unless otherwise required.
For details about how to create a VPC, see "VPC and Subnet" > "VPC" > "Creating a VPC" in Virtual Private Cloud User Guide.
After a VPC is created, a subnet is also created in the subnet. If the VPC needs more subnets, go to 6 and 7. Otherwise, go to Creating a Security Group.
- When creating a VPC, CIDR Block indicates the IP address range of the VPC. If this parameter is set, the IP addresses of subnets in the VPC must be within the IP address range of the VPC.
- If you create a VPC to provision DCS instances, you do not need to configure the CIDR block for the VPC.
- In the navigation pane on the left, choose Virtual Private Cloud > Subnets.
- Click Create Subnet. Create a subnet as prompted, retaining the default values unless otherwise required.
For details about how to create a subnet, see "VPC and Subnet" > "Subnet" in Virtual Private Cloud User Guide.
Creating a Security Group
Only DCS Redis 3.0 and Memcached instances require security groups.
- Log in to the VPC console.
- In the navigation pane on the left, choose Access Control > Security Groups and then click Create Security Group in the upper right corner of the displayed page. Create a security group as prompted, retaining the default values unless otherwise required.
For details about how to create a security group, see "Security" > "Security Group" > "Creating a Security Group" in Virtual Private Cloud User Guide.
- Set Template to Custom.
- After a security group is created, retain the default inbound rule that allows communication among ECSs within the security group and the default outbound rule that allows all outbound traffic.
- To use DCS, you must add the security group rules described in the following table. You can also add other rules based on site requirements.
Table 1 Security group rules Direction
Protocol
Port
Source
Description
Inbound
TCP
6379
0.0.0.0/0
Access a DCS Redis 3.0 instance in a private network.
Inbound
TCP
11211
0.0.0.0/0
Access a DCS Memcached instance.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot