All Products
Search
Document Center

Use VPC

Last Updated: May 11, 2018

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.

  1. bcs sub "python demo.py" --vpc_cidr_block 192.168.0.0/16

View the job details.

  1. bcs j
  2. bcs j 1 # "1" is the sequence number in the job list, and indicates the first job in the list
  3. 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.

  1. Networks:
  2. |--Classic:
  3. |--VPC:
  4. 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.

  1. bcs cc cluster1 --vpc_cidr_block 192.168.0.0/16

View the cluster details.

  1. bcs c # Obtain the cluster list
  2. bcs c 1 # View the details of the first cluster

The following information is available in the details.

  1. Networks:
  2. |--Classic:
  3. |--VPC:
  4. CidrBlock : 192.168.0.0/16