You are on page 1of 19

WebLogic for OKE

Overview

Bogdan Eremia
App Development and App Integration Solutions Specialist
November 19, 2020
Safe harbor statement

The following is intended to outline our general product direction. It is


intended for information purposes only, and may not be incorporated into
any contract. It is not a commitment to deliver any material, code, or
functionality, and should not be relied upon in making purchasing decisions.
The development, release, timing, and pricing of any features or functionality
described for Oracle’s products may change and remains at the sole
discretion of Oracle Corporation.

2 Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted [Date]
WebLogic for OKE

1. Introduction
2. Architecture
3. CI/CD

3 Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted


WebLogic for OKE
Available on Marketplace

• Customer managed OCI Marketplace solution


• BYOL, Universal Credits and PAYG

• Enterprise Edition (EE)*


• Java SE, WLS Java EE APIs, WLS Clustering, Multi
Data source for WLS EE version
• Suite Edition*
• EE features + Active GridLink, Coherence EE

• Supports JRF and Non-JRF domains


• Supports ATP DB and OCI DB as infra DB
• Supports WLS 12.2.1.4 WebLogic for OKE on Marketplace

4 Copyright © 2020, Oracle and/or its affiliates, Confidential: Internal/Restricted/Highly Restricted [Date]
WebLogic for OKE
Available on Marketplace – cont.

• Click-to-Deploy from Marketplace


• Stack deployment mode (Terraform) Marketplace Resource
Manager

• Consolidated Billing through the Marketplace


• OCI Resources (Compute, Load balancer, Networking,
etc.) are billed separately
• Only nodes in the WebLogic Node pool are accounted
for billing Admin Virtual Cloud
Load File Storage OKE
Host Balancers Network

WLS for OKE – Provisioning flow

Oracle Marketplace
5 Copyright © 2020, Oracle and/or its affiliates, Confidential: Internal/Restricted/Highly Restricted [Date]
WebLogic for OKE
Stack Configuration Flow

Admin &
Container
WebLogic Bastion
Cluster
Settings Instances
Configuration
Configuration

Registry
Network Database File System
(OCIR)
Configuration Configuration Settings
Connection

6 Copyright © 2020, Oracle and/or its affiliates, Confidential: Internal/Restricted/Highly Restricted [Date]
WebLogic for OKE
Components

Required components Optional components

• WebLogic Server • Database


• Marketplace (1st run) • ATP / OCI DB
• Resource Manager • Marketplace
• Virtual Cloud Network
• Load Balancer
• Compute
• OKE Cluster
• Vault (KMS)
• File System
• Mount Target

7 Copyright © 2020, Oracle and/or its affiliates, Confidential: Internal/Restricted/Highly Restricted [Date]
WebLogic for OKE
Topology

WebLogic
Kubernetes
Jenkins Master NginX Operator

Bastion Admin Host Oracle Cloud


Infrastructure
Non WebLogic Node Pool
Registry
(OCIR)
WebLogic
WebLogic Domain Jenkins Slave Domain
Introspector

Kubernetes
Control Plane
AS MS1 MS8

WebLogic Node Pool OCI Control Plane

Public Subnet Private Subnet

Logs Helper Scripts Jenkins Home


File Storage
VCN
TENANCY

8 Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted


WebLogic for OKE
Domain Home Source type*

Domain in Image

Requires a different image for each


domain, but all servers in that domain
use the same image.

If you want to mutate the domain home
configuration, then you can apply
configuration overrides or create a new
image. If you want to deploy application
updates, then you must create a new
image.

You should not use the Administration


Console or WLST for these domains as
changes are ephemeral and will be lost
when servers restart.

* https://oracle.github.io/weblogic-kubernetes-operator/userguide/managing-domains/choosing-a-model/

9 Copyright © 2020, Oracle and/or its affiliates, Confidential: Internal/Restricted/Highly Restricted


WebLogic for OKE
CI/CD Approach

compile, test install in deploy to


and package local/remote running
the application repository dev/test WLS
e.g. Maven repos

Traditional VM based WLS topologies

Container based WLS topologies (using Domain in Image)

compile, test install in update latest push to update K8s


and package local/remote WLS container container Pods Instances
the application repository image registry with new ones
e.g. Maven repos

Same approach for applying WLS Server / Domain configurations

10 Copyright © 2020, Oracle and/or its affiliates, Confidential: Internal/Restricted/Highly Restricted


WebLogic for OKE
Jenkins

• Installed on Oracle Cloud


Infrastructure Container Engine
for Kubernetes
• First time login, create admin
user
• Uses Oracle WebLogic Server
Deploy Tooling (WDT)
• Uses Oracle WebLogic Image
Tool (WIT)
• Configured to run Jenkins slave
pods only in WebLogic Node
Pool
• Built in Jenkins pipelines to
CI/CD your WLS Domain

11 Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted


WebLogic for OKE
Jenkins – cont.

• Customize default pipelines


• Add your own tests
• Provide applications or libraries
through object storage or directly
in shared file system
• Update WebLogic binaries by
providing the WebLogic installation
files
• Apply JDK patches to your domain
• Optionally update the running
domain with the built image

12 Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted


WebLogic for OKE - Jenkins
Deploy-apps Pipeline Job

• Use WDT to deploy applications, shared libraries and resources (JMS, JDBC datasource).
• Uses deployApps WDT command.
• Use WIT to rebase the updated domain image to base FMW image (without any domain).
• Domain YAML before and after apply is backed up on shared file system.

Pre- Build Push to Test Test domain


Rebase
check Domain OCIR Domain Validation

Deploy to Domain
Cleanup
Domain Validation

Rollback

13 Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted


WebLogic for OKE - Jenkins
Opatches update

• Supports Opatches on shared file system location and Object Storage


• Read single or multiple patches that are provided by user
• Run imagetool update command to apply patches on domain home

Pre- Apply Push to Test Test domain


check Patches OCIR Domain Validation

Deploy to Domain
Cleanup
Domain Validation

Rollback

14 14 Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted


WebLogic for OKE – Jenkins
JDK Patching

• Supports JDK bundle on shared file system location and Object Storage
• Replaces JDK in the domain home image
• Uses Docker multi stage build mechanism to reduce the size of the image

Pre- Apply Push to Test Test domain


check JDK OCIR Domain Validation

Deploy to Domain
Cleanup
Domain Validation

Rollback

15 Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted


WebLogic for OKE – Jenkins
Rebase Full Install

• Supports FMW Installer, Opatches , and JDK Installer on shared file system location and Object Storage
• Read FMW installer provided by user
• Read WLS single or multiple patches that are provided by user
• Read JDK installer provided by user
• Run imagetool rebase command to create new image with FMW installer, JDK installer, & WLS patches and
domain copied from source image.
• Advantage of using imagetool rebase option is there is minimal increase in image size.

Rebase
Pre- Push to Test Test domain
Full
check OCIR Domain Validation
Install

Deploy to Domain
Cleanup
Domain Validation

Rollback

16 Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted


Thank you

17 Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted [Date]
Our mission is to help people see
data in new ways, discover insights,
unlock endless possibilities.

You might also like