Follow these post install configuration steps.
Navigate to the following directory:
cd $WORKDIR/kubernetes/create-oim-domain/domain-home-on-pv/output/weblogic-domains/governancedomain
Create a setUserOverrides.sh
with the following contents:
DERBY_FLAG=false
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.net.preferIPv4Stack=true"
MEM_ARGS="-Xms8192m -Xmx8192m"
Copy the setUserOverrides.sh
file to the Administration Server pod:
$ chmod 755 setUserOverrides.sh
$ kubectl cp setUserOverrides.sh oigns/governancedomain-adminserver:/u01/oracle/user_projects/domains/governancedomain/bin/setUserOverrides.sh
Where oigns
is the OIG namespace and governancedomain
is the domain_UID
.
Stop the OIG domain using the following command:
$ kubectl -n <domain_namespace> patch domains <domain_uid> --type='json' -p='[{"op": "replace", "path": "/spec/serverStartPolicy", "value": "NEVER" }]'
For example:
$ kubectl -n oigns patch domains governancedomain --type='json' -p='[{"op": "replace", "path": "/spec/serverStartPolicy", "value": "NEVER" }]'
The output will look similar to the following:
domain.weblogic.oracle/governancedomain patched
Check that all the pods are stopped:
$ kubectl get pods -n <domain_namespace>
For example:
$ kubectl get pods -n oigns
The output will look similar to the following:
NAME READY STATUS RESTARTS AGE
governancedomain-adminserver 1/1 Terminating 0 18h
governancedomain-create-fmw-infra-domain-job-8cww8 0/1 Completed 0 24h
governancedomain-oim-server1 1/1 Terminating 0 18h
governancedomain-soa-server1 1/1 Terminating 0 18h
helper 1/1 Running 0 41h
The Administration Server pods and Managed Server pods will move to a STATUS of Terminating
. After a few minutes, run the command again and the pods should have disappeared:
NAME READY STATUS RESTARTS AGE
governancedomain-create-fmw-infra-domain-job-8cww8 0/1 Completed 0 24h
helper 1/1 Running 0 41h
Start the domain using the following command:
$ kubectl -n <domain_namespace> patch domains <domain_uid> --type='json' -p='[{"op": "replace", "path": "/spec/serverStartPolicy", "value": "IF_NEEDED" }]'
For example:
$ kubectl -n oigns patch domains governancedomain --type='json' -p='[{"op": "replace", "path": "/spec/serverStartPolicy", "value": "IF_NEEDED" }]'
Run the following kubectl command to view the pods:
$ kubectl get pods -n <domain_namespace>
For example:
$ kubectl get pods -n oigns
The output will look similar to the following:
NAME READY STATUS RESTARTS AGE
governancedomain-create-fmw -infra-domain-job-vj69h 0/1 Completed 0 24h
governancedomain-introspect-domain-job-7qx29 1/1 Running 0 8s
helper 1/1 Running 0 41h
The Administration Server pod will start followed by the OIG Managed Servers pods. This process will take several minutes, so keep executing the command until all the pods are running with READY
status 1/1
:
NAME READY STATUS RESTARTS AGE
governancedomain-adminserver 1/1 Running 0 6m4s
governancedomain-create-fmw-infra-domain-job-vj69h 0/1 Completed 0 24h
governancedomain-oim-server1 1/1 Running 0 3m5s
governancedomain-soa-server1 1/1 Running 0 3m5s
helper 1/1 Running 0 41h
Login to Oracle Enterprise Manager using the following URL:
https://${MASTERNODE-HOSTNAME}:${MASTERNODE-PORT}/em
Click the Target Navigation icon in the top left of the screen and navigate to the following:
Enter a new value for the OimFrontEndURL
attribute, in the format:
https://${LOADBALANCER-HOSTNAME}:${LOADBALANCER-PORT}
https://${MASTERNODE-HOSTNAME}:${MASTERNODE-PORT}
If using HTTP instead of HTTPS for your ingress, change the URL appropriately.
Then click Apply
.