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
For OIG domains created with WDT:
$ cd $WORKDIR/kubernetes/create-oim-domain/domain-home-on-pv/
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-oim-server1                         1/1     Terminating    0          18h
governancedomain-soa-server1                         1/1     Terminating    0          18h
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:
No resources found in oigns namespace.
Start the domain using the following command:
$ kubectl -n <domain_namespace> patch domains <domain_uid> --type='json' -p='[{"op": "replace", "path": "/spec/serverStartPolicy", "value": "IfNeeded" }]'
For example:
$ kubectl -n oigns patch domains governancedomain --type='json' -p='[{"op": "replace", "path": "/spec/serverStartPolicy", "value": "IfNeeded" }]'
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-introspect-domain-job-7qx29         1/1     Running     0          8s
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-oim-server1                        1/1     Running     0          3m5s
governancedomain-soa-server1                        1/1     Running     0          3m5s
Login to Oracle Enterprise Manager using https://${HOSTNAME}:${PORT}/em or if using a load balancer https://${LOADBALANCER-HOSTNAME}:${LOADBALANCER-PORT}.
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://${HOSTNAME}:${PORT}If using HTTP instead of HTTPS for your ingress, change the URL appropriately.
Then click Apply.