To prepare your Oracle SOA Suite in Kubernetes environment, complete the following steps.
Refer to the troubleshooting page to troubleshoot issues during the domain deployment process.
Set up the code repository to deploy Oracle SOA Suite domains
Prepare the environment for Oracle SOA Suite domains
a. Create a namespace for an Oracle SOA Suite domain
b. Create a persistent storage for an Oracle SOA Suite domain
c. Create a Kubernetes secret with domain credentials
d. Create a Kubernetes secret with the RCU credentials
e. Configure access to your database
f. Run the Repository Creation Utility to set up your database schemas
Refer the official Kubernetes set up documentation to set up a production grade Kubernetes cluster.
The operator uses Helm to create and deploy the necessary resources and then run the operator in a Kubernetes cluster. For Helm installation and usage information, see here.
Obtain dependent images and add them to your local registry.
For first time users, to pull an image from the Oracle Container Registry, navigate to https://container-registry.oracle.com and log in using the Oracle Single Sign-On (SSO) authentication service. If you do not already have an SSO account, you can create an Oracle Account here.
Use the web interface to accept the Oracle Standard Terms and Restrictions for the Oracle software images that you intend to deploy. Your acceptance of these terms are stored in a database that links the software images to your Oracle Single Sign-On login credentials.
Log in to the Oracle Container Registry (container-registry.oracle.com
) from your Docker client:
$ docker login container-registry.oracle.com
Pull the operator image:
$ docker pull ghcr.io/oracle/weblogic-kubernetes-operator:4.0.6
Oracle SOA Suite domain deployment on Kubernetes leverages the WebLogic Kubernetes Operator infrastructure. To deploy an Oracle SOA Suite domain, you must set up the deployment scripts.
Create a working directory to set up the source code:
$ mkdir $HOME/soa_23.2.2
$ cd $HOME/soa_23.2.2
Download the WebLogic Kubernetes Operator source code and Oracle SOA Suite Kubernetes deployment scripts from the SOA repository. Required artifacts are available at OracleSOASuite/kubernetes
.
$ git clone https://github.com/oracle/fmw-kubernetes.git
$ export WORKDIR=$HOME/soa_23.2.2/fmw-kubernetes/OracleSOASuite/kubernetes
The Oracle SOA Suite image with the latest bundle patch and required interim patches is prebuilt by Oracle and includes Oracle SOA Suite 12.2.1.4.0, the April Patch Set Update (PSU), and other fixes released with the Critical Patch Update (CPU) program. The Oracle Container Registry hosts container images based on both Oracle Linux 7 (ol7) and 8 (ol8). These are the only images supported for production deployments. Obtain the Oracle SOA Suite images using either of the following methods:
Download from Oracle Container Registry:
Log in to Oracle Container Registry
, navigate to Middleware > soasuite_cpu and accept the license agreement if not already done.
Log in to the Oracle Container Registry (container-registry.oracle.com) from your Docker client:
$ docker login container-registry.oracle.com
Pull the Oracle Linux 7 or 8 based images:
For example:
$ docker pull container-registry.oracle.com/middleware/soasuite_cpu:12.2.1.4-jdk8-<ol7 or ol8>-<TAG>
Download from My Oracle Support:
Download patch 35269141 for Oracle Linux 7 based container image or 35285229 for Oracle Linux 8 based container image from My Oracle Support (MOS).
Unzip the downloaded patch zip file.
Load the image archive using the docker load
command.
For example:
$ docker load < soasuite-12.2.1.4-jdk8-<ol7 or ol8>-<TAG>.tar
Loaded image: oracle/soasuite:12.2.1.4-jdk8-<ol7 or ol8>-<TAG>
$
Run the docker inspect
command to verify that the downloaded image is the latest released image. The value of label com.oracle.weblogic.imagetool.buildid
must match to aee64137-aca3-47ab-81bd-a3599db2a8c6
for Oracle Linux 7 based container image and 09dfa8f6-3c27-483a-8167-668910104500
for Oracle Linux 8 based container image.
For example:
$ docker inspect --format='{{ index .Config.Labels "com.oracle.weblogic.imagetool.buildid" }}' oracle/soasuite:12.2.1.4-jdk8-ol7-230502.223409
aee64137-aca3-47ab-81bd-a3599db2a8c6
$
If you want to build and use an Oracle SOA Suite Docker image with any additional bundle patch or interim patches that are not part of the image obtained from My Oracle Support, then follow these steps to create the image.
Note: The default Oracle SOA Suite image name used for Oracle SOA Suite domains deployment is
soasuite:12.2.1.4
. The image obtained must be tagged assoasuite:12.2.1.4
using thedocker tag
command. If you want to use a different name for the image, make sure to update the new image tag name in thecreate-domain-inputs.yaml
file and also in other instances where thesoasuite:12.2.1.4
image name is used.
The WebLogic Kubernetes Operator supports the deployment of Oracle SOA Suite domains in the Kubernetes environment. Follow the steps in this document to install the operator.
Note: Optionally, you can follow these steps to send the contents of the operator’s logs to Elasticsearch.
In the following example commands to install the WebLogic Kubernetes Operator, opns
is the namespace and op-sa
is the service account created for the operator:
$ kubectl create namespace opns
$ kubectl create serviceaccount -n opns op-sa
$ cd ${WORKDIR}
$ helm install weblogic-kubernetes-operator charts/weblogic-operator --namespace opns --set serviceAccount=op-sa --set "javaLoggingLevel=FINE" --wait
This Helm release deploys the operator with the default behavior of managing Oracle SOA Suite domains in all Kubernetes namespaces with the label weblogic-operator=enabled
.
Create a Kubernetes namespace (for example, soans
) for the domain unless you intend to use the default namespace. Label the namespace with weblogic-operator=enabled
to manage the domain. Use the new namespace in the remaining steps in this section.
For details, see Prepare to run a domain.
$ kubectl create namespace soans
$ kubectl label namespace soans weblogic-operator=enabled
In the Kubernetes namespace you created, create the PV and PVC for the domain by running the create-pv-pvc.sh script. Follow the instructions for using the script to create a dedicated PV and PVC for the Oracle SOA Suite domain.
Review the configuration parameters for PV creation here. Based on your requirements, update the values in the create-pv-pvc-inputs.yaml
file located at ${WORKDIR}/create-weblogic-domain-pv-pvc/
. Sample configuration parameter values for an Oracle SOA Suite domain are:
baseName
: domaindomainUID
: soainfranamespace
: soansweblogicDomainStorageType
: HOST_PATHweblogicDomainStoragePath
: /scratch/k8s_dir/SOAEnsure that the path for the weblogicDomainStoragePath
property exists and have the ownership for 1000:0
. If not, you need to create it as follows:
$ sudo mkdir /scratch/k8s_dir/SOA
$ sudo chown -R 1000:0 /scratch/k8s_dir/SOA
Run the create-pv-pvc.sh
script:
$ cd ${WORKDIR}/create-weblogic-domain-pv-pvc
$ ./create-pv-pvc.sh -i create-pv-pvc-inputs.yaml -o output_soainfra
The create-pv-pvc.sh
script will create a subdirectory pv-pvcs
under the given /path/to/output-directory
directory and creates two YAML configuration files for PV and PVC. Apply these two YAML files to create the PV and PVC Kubernetes resources using the kubectl create -f
command:
$ kubectl create -f output_soainfra/pv-pvcs/soainfra-domain-pv.yaml
$ kubectl create -f output_soainfra/pv-pvcs/soainfra-domain-pvc.yaml
Create the Kubernetes secrets username
and password
of the administrative account in the same Kubernetes namespace as the domain:
$ cd ${WORKDIR}/create-weblogic-domain-credentials
$ ./create-weblogic-credentials.sh -u weblogic -p Welcome1 -n soans -d soainfra -s soainfra-domain-credentials
For more details, see this document.
You can check the secret with the kubectl get secret
command.
For example:
You also need to create a Kubernetes secret containing the credentials for the database schemas. When you create your domain, it will obtain the RCU credentials from this secret.
Use the provided sample script to create the secret:
$ cd ${WORKDIR}/create-rcu-credentials
$ ./create-rcu-credentials.sh \
-u SOA1 \
-p Oradoc_db1 \
-a sys \
-q Oradoc_db1 \
-d soainfra \
-n soans \
-s soainfra-rcu-credentials
The parameter values are:
-u
username for schema owner (regular user), required.-p
password for schema owner (regular user), required.-a
username for SYSDBA user, required.-q
password for SYSDBA user, required.-d
domainUID. Example: soainfra
-n
namespace. Example: soans
-s
secretName. Example: soainfra-rcu-credentials
You can confirm the secret was created as expected with the kubectl get secret
command.
For example:
Oracle SOA Suite domains require a database with the necessary schemas installed in them. The Repository Creation Utility (RCU) allows you to create those schemas. You must set up the database before you create your domain. There are no additional requirements added by running Oracle SOA Suite in Kubernetes; the same existing requirements apply.
For production deployments, you must set up and use the standalone (non-container) based database running outside of Kubernetes.
Before creating a domain, you will need to set up the necessary schemas in your database.
The RCU pod requires that you create a secret in the same namespace as the RCU pod that contains the database’s SYSDBA username and password in its sys_username
and sys_password
fields, and also contains a password of your choice for RCU schemas in its password
field.
For example:
$ kubectl -n default create secret generic oracle-rcu-secret \
--from-literal='sys_username=sys' \
--from-literal='sys_password=MY_SYS_PASSWORD' \
--from-literal='password=MY_RCU_SCHEMA_PASSWORD'
To create the database schemas for Oracle SOA Suite, run the create-rcu-schema.sh
script.
For example:
$ cd ${WORKDIR}/create-rcu-schema
$ ./create-rcu-schema.sh -h
usage: ./create-rcu-schema.sh -s <schemaPrefix> [-t <schemaType>] [-d <dburl>] [-n <namespace>] [-c <credentialsSecretName>] [-p <docker-store>] [-i <image>] [-u <imagePullPolicy>] [-o <rcuOutputDir>] [-r <customVariables>] [-l <timeoutLimit>] [-h]
-s RCU Schema Prefix (required)
-t RCU Schema Type (optional)
(supported values: osb,soa,soaosb)
-d RCU Oracle Database URL (optional)
(default: oracle-db.default.svc.cluster.local:1521/devpdb.k8s)
-n Namespace for RCU pod (optional)
(default: default)
-c Name of credentials secret (optional)
(default: oracle-rcu-secret)
Must contain SYSDBA username at key 'sys_username',
SYSDBA password at key 'sys_password',
and RCU schema owner password at key 'password'.
-p OracleSOASuite ImagePullSecret (optional)
(default: none)
-i OracleSOASuite Image (optional)
(default: soasuite:12.2.1.4)
-u OracleSOASuite ImagePullPolicy (optional)
(default: IfNotPresent)
-o Output directory for the generated YAML file (optional)
(default: rcuoutput)
-r Comma-separated custom variables in the format variablename=value (optional)
(default: none)
-l Timeout limit in seconds (optional)
(default: 300)
-h Help
NOTE: The c, p, i, u, and o arguments are ignored if an RCU pod is already running in the namespace.
$ ./create-rcu-schema.sh \
-s SOA1 \
-t soaosb \
-d oracle-db.default.svc.cluster.local:1521/devpdb.k8s \
-n default \
-c oracle-rcu-secret \
-i soasuite:12.2.1.4 \
-r SOA_PROFILE_TYPE=SMALL,HEALTHCARE_INTEGRATION=NO
For Oracle SOA Suite domains, the create-rcu-schema.sh
script supports:
soa
, osb
, and soaosb
.
You must specify one of these using the -t
flag.-r
flag. For example, -r SOA_PROFILE_TYPE=SMALL
. Supported values for SOA_PROFILE_TYPE
are SMALL
, MED
, and LARGE
.Note: To use the
LARGE
schema profile type, make sure that the partitioning feature is enabled in the Oracle Database.
Make sure that you maintain the association between the database schemas and the matching domain just like you did in a non-Kubernetes environment. There is no specific functionality provided to help with this.
If you want to drop a schema, you can use the drop-rcu-schema.sh
script.
For example:
$ cd ${WORKDIR}/create-rcu-schema
$ ./drop-rcu-schema.sh -h
usage: ./drop-rcu-schema.sh -s <schemaPrefix> [-t <schemaType>] [-d <dburl>] [-n <namespace>] [-c <credentialsSecretName>] [-p <docker-store>] [-i <image>] [-u <imagePullPolicy>] [-o <rcuOutputDir>] [-r <customVariables>] [-h]
-s RCU Schema Prefix (required)
-t RCU Schema Type (optional)
(supported values: osb,soa,soaosb)
-d RCU Oracle Database URL (optional)
(default: oracle-db.default.svc.cluster.local:1521/devpdb.k8s)
-n Namespace for RCU pod (optional)
(default: default)
-c Name of credentials secret (optional)
(default: oracle-rcu-secret)
Must contain SYSDBA username at key 'sys_username',
SYSDBA password at key 'sys_password',
and RCU schema owner password at key 'password'.
-p OracleSOASuite ImagePullSecret (optional)
(default: none)
-i OracleSOASuite Image (optional)
(default: soasuite:12.2.1.4)
-u OracleSOASuite ImagePullPolicy (optional)
(default: IfNotPresent)
-o Output directory for the generated YAML file (optional)
(default: rcuoutput)
-r Comma-separated custom variables in the format variablename=value (optional)
(default: none)
-h Help
NOTE: The c, p, i, u, and o arguments are ignored if an RCU pod is already running in the namespace.
$ ./drop-rcu-schema.sh \
-s SOA1 \
-t soaosb \
-d oracle-db.default.svc.cluster.local:1521/devpdb.k8s \
-n default \
-c oracle-rcu-secret \
-r SOA_PROFILE_TYPE=SMALL,HEALTHCARE_INTEGRATION=NO
For Oracle SOA Suite domains, the drop-rcu-schema.sh
script supports:
soa
, osb
, and soaosb
.
You must specify one of these using the -t
flag.-r
flag. For example, -r SOA_PROFILE_TYPE=SMALL
. Supported values for SOA_PROFILE_TYPE
are SMALL
, MED
, and LARGE
.Now that you have your Docker images and you have created your RCU schemas, you are ready to create your domain. To continue, follow the instructions in Create Oracle SOA Suite domains.