Virtual Private Cloud (VPC) is a private network established in Alibaba Cloud. For more information, see VPC What is VPC.
1. Submit the job
Use vpc_cidr_block to specify the CIDR block.
bcs sub "python demo.py" --vpc_cidr_block 192.168.0.0/16
View the job details.
bcs j
bcs j 1 # "1" is the sequence number in the job list, and indicates the first job in the list
bcs j 1 1 # The second "1" is the sequence number in the task list, and indicates the first task in the list
The following information is available in the task details.
Networks:
|--Classic:
|--VPC:
CidrBlock : 192.168.0.0/16
Note: To use the sequence number, you must first obtain the list of jobs. Only the list has the cache, and the sequence number is read from the cache.
2. Create a cluster
Use vpc_cidr_block to specify the CIDR block.
bcs cc cluster1 --vpc_cidr_block 192.168.0.0/16
View the cluster details.
bcs c # Obtain the cluster list
bcs c 1 # View the details of the first cluster
The following information is available in the details.
Networks:
|--Classic:
|--VPC:
CidrBlock : 192.168.0.0/16