description |
---|
How Infrastructures and Plans work together to create a VPC |
Infrastructures are abstractions that allow you to create a Virtual Private Cloud (VPC) instance in the DuploCloud Portal. When you create an Infrastructure, a Plan is automatically generated to supply the network configuration necessary for your Infrastructure to run.
DuploCloud creates a VNET with a default subnet and a default Network Security Group (NSG). The creation of an Infrastructure takes about ten (10) minutes.
When you create a DuploCloud Infrastructure, you create an isolated environment that maps to a Kubernetes cluster.
In DuploCloud, an Infrastructure maps one-to-one to a VPC in a specified region. It also maps to a Google Kubernetes Engine (GKE) cluster you use for container orchestration.
When creating an Infrastructure, specify the number of availability zones, the region, VPC Classless Inter-Domain Routing (CIDR), and a subnet mask. DuploCloud creates two subnets in each availability zone, one private and one public, and sets up routes and a NAT gateway.
Create a DuploCloud Infrastructure in the DuploCloud Portal:
- Click Administrator -> Infrastructure from the navigation menu.
- Click Add.
- Define the Infrastructure by completing the fields on the Add Infrastructure form.
- Click Enable GKE to enable GKE for the Infrastructure.
- Click the Cluster Mode list box, and select either GKE Standard or GKE Autopilot.
- Optionally, select Advanced Options to specify additional configurations (public and private subnets, for example).
- Click Create. The Infrastructure is created and is listed on the Infrastructure page.
{% hint style="warning" %} Up to one (0 or 1) GKS instance is supported for each DuploCloud Infrastructure. {% endhint %}
When you create the Infrastructure, DuploCloud creates the following components:
- VPC with 2 subnets (private, public) in each availability zone
- Required security groups
- NAT Gateway
- Internet Gateway
- Route tables
- VPC peering with the master VPC, which is initially configured in DuploCloud
{% hint style="warning" %} Cloud providers limit the number of Infrastructures that can run in each region. If you have completed the steps to create an Infrastructure and it doesn't show a Status of Complete, try selecting a different region. {% endhint %}
Once the Infrastructure is created, a Plan (with the same Infrastructure name) is automatically created and populated with the Infrastructure configuration. The Plan is used to create Tenants.