Follow these post install configuration steps.
Navigate to the following directory:
$ cd $WORKDIR/kubernetes/create-access-domain/domain-home-on-pv/output/weblogic-domains/accessdomain
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 oamns/accessdomain-adminserver:/u01/oracle/user_projects/domains/accessdomain/bin/setUserOverrides.sh
Where oamns
is the OAM namespace and accessdomain
is the DOMAIN_NAME/UID
.
Stop the OAM 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 oamns patch domains accessdomain --type='json' -p='[{"op": "replace", "path": "/spec/serverStartPolicy", "value": "Never" }]'
The output will look similar to the following:
domain.weblogic.oracle/accessdomain patched
Check that all the pods are stopped:
$ kubectl get pods -n <domain_namespace>
For example:
$ kubectl get pods -n oamns
The output will look similar to the following:
NAME READY STATUS RESTARTS AGE
accessdomain-adminserver 1/1 Terminating 0 27m
accessdomain-create-oam-infra-domain-job-7c9r9 0/1 Completed 0 4h29m
accessdomain-oam-policy-mgr1 1/1 Terminating 0 24m
accessdomain-oam-server1 1/1 Terminating 0 24m
helper 1/1 Running 0 4h44m
nginx-ingress-ingress-nginx-controller-76fb7678f-k8rhq 1/1 Running 0 108m
The Administration Server pod 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
accessdomain-create-oam-infra-domain-job-7c9r9 0/1 Completed 0 4h30m
helper 1/1 Running 0 4h45m
nginx-ingress-ingress-nginx-controller-76fb7678f-k8rhq 1/1 Running 0 109m
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 oamns patch domains accessdomain --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 oamns
The output will look similar to the following:
NAME READY STATUS RESTARTS AGE
accessdomain-create-oam-infra-domain-job-7c9r9 0/1 Completed 0 4h30m
accessdomain-introspector-mckp2 1/1 Running 0 8s
helper 1/1 Running 0 4h46m
nginx-ingress-ingress-nginx-controller-76fb7678f-k8rhq 1/1 Running 0 110m
The Administration Server pod will start followed by the OAM 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
accessdomain-adminserver 1/1 Running 0 5m38s
accessdomain-create-oam-infra-domain-job-7c9r9 0/1 Completed 0 4h37m
accessdomain-oam-policy-mgr1 1/1 Running 0 2m51s
accessdomain-oam-server1 1/1 Running 0 2m50s
helper 1/1 Running 0 4h52m
nginx-ingress-ingress-nginx-controller-76fb7678f-k8rhq 1/1 Running 0 116m
Exclude all Oracle Access Management (OAM) clusters (including Policy Manager and OAM runtime server) from the default WebLogic Server 12c coherence cluster by using the WebLogic Server Administration Console.
From 12.2.1.3.0 onwards, OAM server-side session management uses the database and does not require coherence cluster to be established. In some environments, warnings and errors are observed due to default coherence cluster initialized by WebLogic. To avoid or fix these errors, exclude all of the OAM clusters from default WebLogic Server coherence cluster using the following steps:
https://${MASTERNODE-HOSTNAME}:${MASTERNODE-PORT}/console
.For production environments, the following WebLogic Server tuning parameters must be set:
https://${MASTERNODE-HOSTNAME}:${MASTERNODE-PORT}/console
.accessdomain
is your domain_UID
.https://${MASTERNODE-HOSTNAME}:${MASTERNODE-PORT}/console
.https://${MASTERNODE-HOSTNAME}:${MASTERNODE-PORT}/em
virtualize
property with value true
and click OK.For the above changes to take effect, you must restart the OAM domain:
Stop the OAM 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 oamns patch domains accessdomain --type='json' -p='[{"op": "replace", "path": "/spec/serverStartPolicy", "value": "Never" }]'
The output will look similar to the following:
domain.weblogic.oracle/accessdomain patched
Check that all the pods are stopped:
$ kubectl get pods -n <domain_namespace>
For example:
$ kubectl get pods -n oamns
The output will look similar to the following:
NAME READY STATUS RESTARTS AGE
accessdomain-adminserver 1/1 Terminating 0 27m
accessdomain-create-oam-infra-domain-job-7c9r9 0/1 Completed 0 4h29m
accessdomain-oam-policy-mgr1 1/1 Terminating 0 24m
accessdomain-oam-server1 1/1 Terminating 0 24m
helper 1/1 Running 0 4h44m
nginx-ingress-ingress-nginx-controller-76fb7678f-k8rhq 1/1 Running 0 108m
The Administration Server pod 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
accessdomain-create-oam-infra-domain-job-7c9r9 0/1 Completed 0 4h30m
helper 1/1 Running 0 4h45m
nginx-ingress-ingress-nginx-controller-76fb7678f-k8rhq 1/1 Running 0 109m
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 oamns patch domains accessdomain --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 oamns
The output will look similar to the following:
NAME READY STATUS RESTARTS AGE
accessdomain-create-oam-infra-domain-job-7c9r9 0/1 Completed 0 4h30m
accessdomain-introspector-mckp2 1/1 Running 0 8s
helper 1/1 Running 0 4h46m
nginx-ingress-ingress-nginx-controller-76fb7678f-k8rhq 1/1 Running 0 110m
The Administration Server pod will start followed by the OAM 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
accessdomain-adminserver 1/1 Running 0 5m38s
accessdomain-create-oam-infra-domain-job-7c9r9 0/1 Completed 0 4h37m
accessdomain-oam-policy-mgr1 1/1 Running 0 2m51s
accessdomain-oam-server1 1/1 Running 0 2m50s
helper 1/1 Running 0 4h52m
nginx-ingress-ingress-nginx-controller-76fb7678f-k8rhq 1/1 Running 0 116m