Skip to Main Content
Optimize WebLogic clusters with Kubernetes Horizontal Pod Autoscaler and the WebLogic Monitoring Exporter

About This Workshop

Youtube Video

About This Workshop
This workshop shows an end to end migration of an on-premise WebLogic Server Domain into the containers and makes it runable in OCI with Oracle Container Engine for Kubernetes (OKE). We demonstrate the graphical interface of WebLogic Kubernetes Toolkit UI as well as WebLogic Deployer Tool and Weblogic Kubernetes Operator. We demonstrate how the migration process could be simplified and accelerated by using a DevOps-oriented set of tooling

Later, we will see how to scale a WebLogic cluster, based on WebLogic metrics provided by the Monitoring Exporter, using the Kubernetes Horizontal Pod Autoscaler (HPA). We will use the Prometheus Adapter to gather the names of the available metrics from Prometheus at regular intervals. A custom configuration of the adapter will expose only metrics that follow specific formats.

Workshop Info

1 hour

Lab 1: Create Environment

             Task 1: Create a Remote Desktop with a Zip file 

            Task 2: Create an OKE Cluster with 1 node 

Lab 2: Setup the resources 

            Task 1: Creation of a Repository

            Task 2: Generate an Authentication Token

            Task 3: Accepting the license for WebLogic Server Images

Lab 3: Modify WKTUI Project 

            Task 1: Explore on-premises domain 

            Task 2: Opening the WKTUI project

            Task 3: Introspection of an offline on-premises domain

            Task 4: Modify the Model file to add wls-exporter.war and update opdemo.war

            Task 5: Validate and prepare the model

Lab 4: Creation of Auxiliary Image and push it to OCIR

            Task 1: Create OCI config file 

            Task 1: Prepare the auxiliary and push it to OCIR

Lab 5: Deploy WLS Operator

            Task 1: Configure kubeconfig

            Task 2: Verify connectivity through WKTUI

            Task 3: Install WLS Operator

Lab 6: Deploy WLS domain

            Task 1: Deploy WLS Domain through WKTUI

Lab 7: Deploy Ingress controller to OKE 

            Task 1: Install ingress controller

            Task 2: Update the ingress routes 

            Task 3: Access the application through browser

Lab 8: Configure Grafana and Prometheus

            Task 1: Setting the Grafana and Prometheus

            Task 2: Add Ingress rules inside security rules

            Task 3: Add the data source and Grafana dashboard 

Lab 9: Setup Prometheus Adaptor and HPA

            Task 1: Install Prometheus Adaptor 

            Task 2: Install HPA 

            Task 3: Simulate Auto scaling up and down 

  • Sample - Familiarity with Database is desirable, but not required
  • Some understanding of cloud and database terms is helpful
  • Familiarity with Oracle Cloud Infrastructure (OCI) is helpful

Other Workshops you might like