This Hands On Lab main purpose is to show how to modernization of existing WebLogic Domain so that WebLogic's user will be able to experience WebLogic's improvement in this agile era. This hands on lab is made based on the WebLogic Kubernetes Operator Documentation also various references and has been tested by May 2020. If you have any questions or inquiries please email me to [email protected].
Note: This is a work in progress tutorial, will be updating as soon as finding some interesting topic to add.
The Hands On Lab will demonstrates:
- Move and improve existing WebLogic Domain using Weblogic Deploy Tooling and WebLogic Image Tool. WebLogic improve is done by REST enabling Weblogic metrics for monitoring using WebLogic Monitoring Exporter and making WebLogic Log into JSON to be consumed by Elasticsearch using WebLogic Logging Exporter
- Automating WebLogic Domain Lifecycle in CI/CD process, which will include working with Oracle Cloud Infrastructure, Oracle Container Pipelines/Wercker, Oracle Container Engine for Kubernetes, Github, Oracle Registry, and lastly WebLogic Kubernetes Operator.
This lab is designed for people with some experience with OCI, Kubernetes, WebLogic, and no experience with WebLogic Tooling, Container Registry, Docker and want to learn the core concepts and basics of how to run WebLogic JEE application on Kubernetes environment.
- Oracle Cloud Infrastructure enabled account. The tutorial has been tested using Trial account (as of April, 2020).
- Linux Desktop with Oracle Cloud Infrastructure CLI, kubectl, helm. Preferred to have bastion host in OCI
- Docker account.
- Github account.
- Oracle Container Pipeline account.
- Oracle Support account.
Moving Existing WebLogic Domain into Docker Image and Improve WebLogic Domain's Monitoring and Logging
This will demonstrate the process of moving existing WebLogic domain into docker image using WDT and WIT. The domain will contain demo Web Application which is a simple JSP page which shows WebLogic Domain's MBean attributes. During moving process, improvement process also being done by adding new monitoring and logging capability using WME and WLE. Below is the illustration
- Create existing WebLogic domain artifact backup
- Create Docker image from existing WebLogic domain
- Setup Oracle Kubernetes Engine to orchestrate the Docker image
- Setup WebLogic Kubernetes Operator to orchestrate WebLogic in Kubernetes
- Update Docker image to improve existing WebLogic domain
This will demonstrate how to enable CI/CD process on the WebLogic domain, where everytime there is a new code commit in the code repository the whole process of creating image, deploying image will be done automatically, below is the illustrationg
- Setup Oracle Container Pipelines (Wercker) to Enable CI/CD for WebLogic Application
- Deploy WebLogic Domain to Kubernetes
- Deploy Ingress Load Balancer for WebLogic in Kubernetes
- Setup Auto Scaling and End to End Monitoring for WebLogic Domain in Kubernetes
- Setup Alternative Scaling for WebLogic Domain in Kubernetes
- Override JDBC Datasource parameters
- Update Web Application
- Assigning WebLogic Pods to Nodes
By the time this hands on lab created below are the tools that being used and its version:
- Oracle Weblogic Deploy Tooling (WDT) v1.8.1
- Oracle Weblogic Image Tooling (WIT) v1.8.5
- Oracle Weblogic Monitoring Exporter (WME) v1.1.2
- Oracle Weblogic Logging Exporter (WLE) v1.0.0
- Oracle Weblogic Kubernetes Operator (WKO) v2.5.0
- Oracle Command Line Interface (OCI) v2.10.1
- Kubectl v1.18.2
- Helm v3.2.1
- Kubernetes v1.15.7
- Kube Prometheus v0.3.0
- Elasticsearch v6.8.0
- Kibana v6.8.0
- Automating WebLogic Deployment - CI/CD with WebLogic Tooling
- Oracle WebLogic Server Kubernetes Operator Documentation
- Oracle WebLogic Server Deploy Tooling
- Oracle WebLogic Image Tool
- Oracle WebLogic Monitoring Exporter
- Oracle WebLogic Logging Exporter
- Oracle Weblogic Server Kubernetes Operator Samples
- Oracle WebLogic Tutorial
- End to end example of monitoring WebLogic Server in Kubernetes
- Using Prometheus to Automatically Scale WebLogic Clusters on Kubernetes
- Scaling a WebLogic cluster
Copyright (c) 2020 Oracle and/or its affiliates The Universal Permissive License (UPL), Version 1.0