top of page

Part 2: Building a short end-to-end environment in OCI

  • Writer: aashish allumalla
    aashish allumalla
  • Oct 25, 2022
  • 2 min read

Updated: Nov 26, 2022

In Part 1 - https://www.letsdosometech.com/post/part-1-building-a-short-end-to-end-environment-in-oci we have covered the introduction, architecture, areas to cover and how to build compartments.


ree

Areas covered so far :


- Building Compartments. ( Completed in Part 1)

- Building VCN’s

- Building Compute instances.

- Building Load Balancer.

- Building DB Systems.

- Create domain zones.

- Create WAF.

- Create VCN Flow logs.

- Create Load balancer Logging.

- Create object storage & replication policies.

- Create resources in secondary region.

- Create DRG’s in both regions.

- Remote peering connections.

- Validate connectivity between both regions.


Let's continue with creating VCN's in this article.


Building a VCN (Hyderabad Region):


Create a VCN by name WebVCN with the CIDR block – 10.0.0.0/16 in Hyderabad region.

Under VCN - Click on create VCN and proceed with filling the details as below and click on create VCN.


ree

It looks as below post creation -


ree

Creating the following subnets -

public subnet - mgmtsubnet with CIDR - 10.0.4.0/24

public subnet - lbsubnet with CIDR - 10.0.3.0/24

private subnet - appsubnet with CIDR - 10.0.2.0/24

private subnet - dbsubnet with CIDR - 10.0.5.0/24


Steps for creating a subnet - (Appsubnet)


ree

ree

Similarly rest of the subnets should be created and it would be looked as below -


ree

Create a private security list for the App subnet for allowing connections to & fro from the CIRD range 10.0.0.0/16 for ports 80,8080 & 22.


ree

ree

ree

Tag the PrivateSL to the Appsubnet and delete the existing tagged default Security list.


ree

ree

Creation of Internet Gateway:


ree

Adding a route in the VCN's default route table to the internet using the Internet Gateway just created -


ree

Creation of Service gateway for access to Oracle services from the private subnet -


ree

Create a NAT Gateway:


ree

Update the route rules for the AppSubnet to add the NAT gateway & Service gateway.


ree

Let's continue with creating of Compute instances, DB Systems and Load balancer in the next part.


Rest of the parts can be accessed through -


Comments


Drop Me a Line, Let Me Know What You Think

Thanks for submitting!

copyrights @letsdosometech.com

bottom of page