This commit is contained in:
2024-05-07 20:18:04 -03:00
parent 9f5f78c34c
commit 0a70e60602
53 changed files with 45 additions and 45 deletions

View File

@@ -22,15 +22,15 @@ With this material, you will:
First of all, we need to create a bucket to store the **Terraform** script generated automatically in the **OCI Market Place**. Go to the Main Menu and click on Storage and Bucket options
![img_6.png](img_6.png)
![img_6.png](images/img_6.png)
Select your compartment and click on **Create Bucket**. This bucket will be used to store the **Terraform** script.
![img_7.png](img_7.png)
![img_7.png](images/img_7.png)
Put a name for your Bucket. Put **Terraform_Scripts** as an example for this tutorial. Maintain the other options as is and click **Create** button.
![img_8.png](img_8.png)
![img_8.png](images/img_8.png)
## Task 2 - Create a Secret
@@ -41,39 +41,39 @@ Now we need to create 2 secrets in the **OCI Vault**. For security reasons, the
Now, go to the Main Menu and click on **Identity & Security** and **Vault** options.
![img_26.png](img_26.png)
![img_26.png](images/img_26.png)
Select the compartment you want to store the secrets and click on **Create Vault** button
![img_29.png](img_29.png)
![img_29.png](images/img_29.png)
Put a name for your vault, confirm the compartment and click on **Create Vault** button
![img_30.png](img_30.png)
![img_30.png](images/img_30.png)
Confirm the vault creation and let's create a key. Click on **Create Key** button
![img_33.png](img_33.png)
![img_33.png](images/img_33.png)
Confirm the compartment and put a name for your key. For example, put **weblogickey** on Name and click on **Create Key** button
![img_34.png](img_34.png)
![img_34.png](images/img_34.png)
Confirm the key creation
![img_35.png](img_35.png)
![img_35.png](images/img_35.png)
Now, click on **Secrets** option and click on **Create Secret** button
![img_31.png](img_31.png)
![img_31.png](images/img_31.png)
We will create the **Weblogic Admin** password. Confirm the compartment, put a name for your first secret. Select **Manual secret generation** to include the password. Select **Plain-Text** option on **Secret Type Template** and write your password. Finally, click on **Create Secret** button.
![img_47.png](img_47.png)
![img_47.png](images/img_47.png)
>**Note:** The password must start with a letter, is between 8 and 30 characters long, contain at least one number, and, optionally, any number of the special characters ($ # _). **If you don't respect this rule, the Weblogic Instance cannot be created.**
![img_37.png](img_37.png)
![img_37.png](images/img_37.png)
Now we will create a new secret for your Image Repository (**OCI Container Registry**).
@@ -83,15 +83,15 @@ If you don't know about how to use the **OCI Repository**, please see this artic
Again, click on **Create Secret** button and fill the **Secret Contents** with your **OCIR token**. Click on **Create Secret** button.
![img_40.png](img_40.png)
![img_40.png](images/img_40.png)
You can see the **Base 64** conversion value of your token by clicking the **Show Base64 conversion** toggle key.
![img_46.png](img_46.png)
![img_46.png](images/img_46.png)
Confirm if your 2 secrets were created
![img_41.png](img_41.png)
![img_41.png](images/img_41.png)
## Task 3 - Create an Observability Application Performance Monitoring
@@ -105,76 +105,76 @@ You can use the **Application Performance Monitoring (APM**). Application Perfor
Let's create an **APM** in the **OCI**. Open the Main Menu and select **Observability & Management** and the **Administration** option.
![img_49.png](img_49.png)
![img_49.png](images/img_49.png)
Select your compartment to create an **APM** domain and click in the **Create APM domain** button
![img_50.png](img_50.png)
![img_50.png](images/img_50.png)
Put a name for your **APM Domain**, confirm your compartment and click on **Create** button.
![img_51.png](img_51.png)
![img_51.png](images/img_51.png)
## Task 4 - Create the Weblogic Clustered Instance
Let's create your **Weblogic Cluster**. Go to the Main menu
![img_1.png](img_1.png)
![img_1.png](images/img_1.png)
Select **Marketplace** option
![img.png](img.png)
![img.png](images/img.png)
Now select the **All Applications**
![img_2.png](img_2.png)
![img_2.png](images/img_2.png)
Write on **Search** text box "webogic". The **Weblogic** options will appear on screen
For the **Weblogic H.A.** option, select for example the **Weblogic Enterprise** or **Weblogic Suite**.
![img_3.png](img_3.png)
![img_3.png](images/img_3.png)
Select the **Version** and compartment for your **Weblogic Cluster**, confirm the acceptance terms and click on **Launch Stack** button
![img_4.png](img_4.png)
![img_4.png](images/img_4.png)
Click on **Use custom Terraform providers** option if you have a custom Terraform script and want to use it. Select the compartment of your bucket previously created and your bucket name.
![img_9.png](img_9.png)
![img_9.png](images/img_9.png)
You can put a name for your stack or leave the default name.
![img_10.png](img_10.png)
![img_10.png](images/img_10.png)
Click **Next** button. Put a prefix name for your **Weblogic** stack. All resources created in Terraform process will contain this prefix name
![img_11.png](img_11.png)
![img_11.png](images/img_11.png)
Generate a Public and Private key file. Put the public key here. This will be used to authenticate your bastion instance.
![img_12.png](img_12.png)
![img_12.png](images/img_12.png)
Maintain **OCI Policies** enabled.
![img_13.png](img_13.png)
![img_13.png](images/img_13.png)
### Working with VCN, Subnets, Private/Public, Bastion
You can use a valid **VCN** inside the **OCI** or create a new one. If you don't have any **VCN** create, select **Create a Virtual Cloud Network** option.
![img_14.png](img_14.png)
![img_14.png](images/img_14.png)
### Working with Load Balancer
Your **Weblogic** instance will be created on a clustered environment. So, you can stablish the number of **Weblogic** instances and can balance the use of this servers through a **Load-Balancer**. Select **Provision Load Balancer** option.
![img_15.png](img_15.png)
![img_15.png](images/img_15.png)
You can customize the **CIDR** block and performance options for the **Load Balancer**
![img_24.png](img_24.png)
![img_24.png](images/img_24.png)
### Working with IDCS
@@ -182,17 +182,17 @@ You can customize the **CIDR** block and performance options for the **Load Bala
You can integrate your **Weblogic Cluster** with IDCS. If you want to integrate with **IDCS**, click on **Enable Authentication Using Identity Cloud Service** option
![img_16.png](img_16.png)
![img_16.png](images/img_16.png)
### Observability
If you want to integrate the **OCI Observability** with your **Webloigc Cluster**, enable this options:
![img_17.png](img_17.png)
![img_17.png](images/img_17.png)
And select your **APM Domain** created previously in your compartment.
![img_39.png](img_39.png)
![img_39.png](images/img_39.png)
### Auto Scaling
@@ -200,24 +200,24 @@ The **Weblogic** stack available on **Oracle Cloud Market Place** allows the use
To activate this option, simply enable the "Autoscaling" option and configure the **OCI Registry** with your previously configured username and token.
Also configure thresholds to automate autoscaling.
![img_18.png](img_18.png)
![img_18.png](images/img_18.png)
![img_42.png](img_42.png)
![img_42.png](images/img_42.png)
### File System - H.A.
There is the possibility of working with shared storage, which is very important when it comes to creating a Weblogic cluster for high availability.
To do this, simply enable the "Add File System" option and configure the subnet's CIDR block to mount the target. Be careful to establish a CIDR block that does not overlap an existing one.
![img_19.png](img_19.png)
![img_19.png](images/img_19.png)
![img_25.png](img_25.png)
![img_25.png](images/img_25.png)
### Configure a VCN
Now you need to create where your **Weblogic** instance will operate. That means to configure the VCN and subnets. You selected to create a new **VCN**, so you can put here a name for your **VCN** and choose optionaly the **CIDR** block for the network. Subnets will be created automatically. Remember to check your compartment for your **VCN**.
![img_20.png](img_20.png)
![img_20.png](images/img_20.png)
### Domain Configuration
@@ -225,14 +225,14 @@ Let's configure the **Weblogic** domain. Put the **Admin User Name**, default is
Select the compartment of your secret created previously and select the **weblogicadmin** secret.
Select your **JDK** version and if you want, you can create a sample application, just select **Deploy Sample Application** option for this.
![img_38.png](img_38.png)
![img_38.png](images/img_38.png)
### Configure Weblogic Instances
Here you can configure your cluster machines. Select your **OCI** compute shape, the **OCPUs** size and the number of **Nodes** for your cluster.
You can configure the **CIDR** block for your servers subnet.
![img_22.png](img_22.png)
![img_22.png](images/img_22.png)
### Working with Bastion
@@ -242,7 +242,7 @@ Enable "Assign Reserved Public IP to Bastion Instance", configure the **CIDR** b
Remember to use your private key configured previously to access your bastion in a **SSH** connection.
![img_23.png](img_23.png)
![img_23.png](images/img_23.png)
Obtain the **Public IP** of your bastion in the **Compute** menu and in you bastion detail.
@@ -261,11 +261,11 @@ You can now access your admin server with your browser with:
## Task 5 - Confirm the Stack creation
![img_43.png](img_43.png)
![img_43.png](images/img_43.png)
![img_44.png](img_44.png)
![img_44.png](images/img_44.png)
![img_45.png](img_45.png)
![img_45.png](images/img_45.png)
## Acknowledgments

View File

Before

Width:  |  Height:  |  Size: 253 KiB

After

Width:  |  Height:  |  Size: 253 KiB

View File

Before

Width:  |  Height:  |  Size: 482 KiB

After

Width:  |  Height:  |  Size: 482 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 124 KiB

View File

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

View File

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 129 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 103 KiB

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 250 KiB

After

Width:  |  Height:  |  Size: 250 KiB

View File

Before

Width:  |  Height:  |  Size: 564 KiB

After

Width:  |  Height:  |  Size: 564 KiB

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View File

Before

Width:  |  Height:  |  Size: 532 KiB

After

Width:  |  Height:  |  Size: 532 KiB

View File

Before

Width:  |  Height:  |  Size: 833 KiB

After

Width:  |  Height:  |  Size: 833 KiB

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View File

Before

Width:  |  Height:  |  Size: 690 KiB

After

Width:  |  Height:  |  Size: 690 KiB

View File

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

View File

Before

Width:  |  Height:  |  Size: 684 KiB

After

Width:  |  Height:  |  Size: 684 KiB

View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 111 KiB

View File

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 138 KiB

View File

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

View File

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 147 KiB

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

Before

Width:  |  Height:  |  Size: 860 KiB

After

Width:  |  Height:  |  Size: 860 KiB

View File

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 136 KiB

View File

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

View File

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 110 KiB

View File

Before

Width:  |  Height:  |  Size: 244 KiB

After

Width:  |  Height:  |  Size: 244 KiB

View File

Before

Width:  |  Height:  |  Size: 758 KiB

After

Width:  |  Height:  |  Size: 758 KiB

View File

Before

Width:  |  Height:  |  Size: 238 KiB

After

Width:  |  Height:  |  Size: 238 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 130 KiB

View File

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 221 KiB

View File

Before

Width:  |  Height:  |  Size: 220 KiB

After

Width:  |  Height:  |  Size: 220 KiB

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

Before

Width:  |  Height:  |  Size: 832 KiB

After

Width:  |  Height:  |  Size: 832 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

View File

Before

Width:  |  Height:  |  Size: 612 KiB

After

Width:  |  Height:  |  Size: 612 KiB

View File

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB