Create a Domain
After you create a stack, use the Jenkins job to create a domain for Oracle WebLogic Server for OKE.
You can locate a WebLogic domain either on a persistent volume (Domain on PV) or inside the container (Model in Image). For a comparison between the two types, see Choose a Domain Home Source Type.
- Model in Image:
With Model in Image, you do not need to create your WebLogic domain home beforehand. This tool uses a WebLogic Deploy Tooling (WDT) model to define the WebLogic configuration. It supports standard WebLogic Server domains. For more information, see Model in Image.
You can create a Model in Image within the container image using the create mii domain job.
When you create a domain with the create mii domain job, a new non-Java Required Files (JRF) domain that has a basic configuration with no custom applications or libraries, called the primordial domain, is created. This domain contains:
- Base WebLogic Server image that has the WebLogic installer, JDK installer, and WebLogic patches for Oracle WebLogic Server for OKE.
- Primordial Auxiliary image that has WebLogic domain resources (server, cluster, JDBC, and other resources).
To know about the primordial domain and auxiliary images, see Mutate the Domain Layer and Auxiliary Images in WebLogic Kubernetes Operator documentation.
- Domain on Persistent Volume (PV):
Domain on PV creates the domain on a persistent volume. Domain on PV is applicable for two types of domains: a standard Oracle WebLogic Server (WLS) domain and an Oracle Fusion Middleware Infrastructure, Java Required Files (JRF) domain. For more information, see Domain on Persistent Volume (PV).
You can create and deploy a domain on persistent volume (Domain on PV) using the create pv domain job. With this job, you can create both a non-Java Required Files (JRF) domain or a Java Required Files (JRF) domain, depending on your requirement.
Topics:
Before you create a domain, ensure that all the prerequisites are completed. See Prerequisites to Create a Domain.
Provision a Non-JRF Domain
You can use the Jenkins pipeline job create mii domain
or
create domain on pv
to automate the deployment of a non-JRF
WebLogic Server doamin. The job you choose will depend on whether you want to use Model
in Image domain home source type or the Domain on Persistent Volume domain home source
type for deploying a domain.
Complete the following steps to create a non-JRF domain using create
mii domain
or create domain on pv
, based on your
requirement.
Configure WebLogic Server
Specify the parameters required to configure a WebLogic server on a container cluster.
Configure the Registry
Specify the credentials to access container images in the Oracle Cloud Infrastructure Registry (OCIR).
Note:
If you want to use another user credentials, other than the one specified when creating a stack, then specify the credentials that Oracle WebLogic Server for OKE must use to access container images in the Oracle Cloud Infrastructure Registry (OCIR).For information about how to create a container registry, see Overview of Registry in the Oracle Cloud Infrastructure documentation.
Configure the Container Cluster
Specify the parameters required to either create a node pool or select an existing node pool for the WebLogic nodes.
Configure the Load Balancer
Specify the parameters required to create a public load balancer for the application. The public load balancer is used to access applications on the WebLogic managed servers.
Configure Identity Cloud Service Integration
You have the option to use IDCS to authenticate application users for your domain. To enable IDCS, specify the parameters required to configure WebLogic Authentication with Oracle Identity Cloud Service (IDCS).
To use Oracle Identity Cloud Service for authentication:
Configure the Domain
If you are using the create domain on pv
job to deploy
a non-JRF domain, in the Provision with JRF section of the page, keep the default
selection for Domain_Type as
Non_JRF.
Create the Domain
Click Build to run the job.
After the job is successful, you can access the WebLogic Console. See Access the WebLogic Console.
Provision a JRF Domain
create domain on
pv
job to provision a JRF domain. The Oracle WebLogic Server domain
includes the Java Required Files (JRF) components, network resources, Kubernetes
cluster, compute instances, and load balancers. For more information about
JRF domains, see JRF Domain.
Creating a JRF-enabled domain is similar to creating a basic domain; however, a database in Oracle Cloud Infrastructure is required. You can specify a database in Oracle Autonomous Database or Oracle Cloud Infrastructure Database (DB System). If you plan to use a DB System database, note that the DB System and the Oracle WebLogic Server for OKE compute instances must be in the same virtual cloud network (VCN).
Note:
- For each schema that is created in the database, a data source is created in WebLogic Server. These data sources should not be used by applications deployed to the WebLogic domain after provisioning is complete. Instead, you must create independent data sources. See About Data Sources.
- Oracle WebLogic Server 14c does not support JRF, so you cannot create a JRF domain using Oracle WebLogic Server 14.1.1.0.0.
The steps to provision a JRF domain is the same as those used for provisioning a non-JRF domain. See Provision a Non-JRF Domain.
Provision a JRF Domain with an Autonomous Database
- From Domain_Type, select JRF_with_ATP.
- For Database_OCID, specify the OCID of the autonomous database.
- For Database_Password, enter the database administrator password.
- For ATP_DB_LEVEL, specify the service level that the domain should use to connect to the selected autonomous database.