Provisioning JCS service in Private Subnet (Part-1)
Hi Guys,
Today starting with new series of post on Java Cloud service and SOA Cloud service, where these instances will be in private subnet and have to access them through Public Load Balancer (HTTP & HTTPS protocol).
So, today post will be the part-1 in the series in which will see how to provision DB system in OCI which will act as repository for JCS and SOA schemas.
Goal:
Have to provision DB system in private subnet which will act as repository for JCS and SOA Schemas.
Activities to do:
- Create the parent compartment DEMO-COMP.
- Create the sub compartment DEV-DEMO-COMP where all DEV instances will reside.
- Create the DEMO-VCN with CIDR 10.0.0.0/16 by choosing the compartment DEMO-COMP.
- Create the NAT Gateway DEMO-NGW to access the public domains like internet from private subnet.
- Create a Route Table and add the NAT gateway which we created in the above step.
- Create a Security list (as this is for private subnet) with ingress rules and egress rules.
- Create a Private subnet with CIDR 10.0.2.0/24 and assign the above created Route table, Security list.
- Provision a DB System.
- Create a policy in the DEMO-COMP compartment to allow the PSM to access the resources of DEMO-COMP.
- Login to the Bastion host which is in public subnet and create a Jason file to spin JCS instance in private subnet.
- By using the curl command and created Jason file spin the JCS instance in private subnet.
Creating the compartment
Creating the sub-compartment
Creating the VCN.
Creating the NAT Gateway.
Creating the Route table.
Creating the Security list.
Adding the Rules to the security list.
Ingress rules:
Source type : CIDR
Source CIDR : 10.0.0.0/16
IP Protocol : All Protocols
Egress rules:
Destination type : CIDR
Destination CIDR : 0.0.0.0/0
IP Protocol : All Protocols
Creating the Private Subnet.
Provisioning the DB system
DB System created successfully.
This concludes the part-1 of this series.
In part-2 will see how to spin JCS instance.
Happy Learning.
Firoz K. Hussain