7.1.6 Creating the domain.yaml
To create the domain.yaml
file used in the Oracle Access Management (OAM)
deployment:
- Navigate to the
$WORKDIR/kubernetes/create-access-domain/domain-home-on-pv
directory:cd $WORKDIR/kubernetes/create-access-domain/domain-home-on-pv
- Run the create domain script, specifying your inputs file and an output directory to
store the generated artifacts. This command creates a
domain.yaml
file required for domain creation:
The output will look similar to the following:./create-domain.sh -i create-domain-inputs.yaml -o output
export version="create-weblogic-sample-domain-inputs-v1" export adminPort="7001" export adminServerSSLPort="7002" export adminServerName="AdminServer" export domainUID="accessdomain" export domainType="oam" export domainHome="/u01/oracle/user_projects/domains/accessdomain" export serverStartPolicy="IfNeeded" export clusterName="oam_cluster" export configuredManagedServerCount="5" export initialManagedServerReplicas="1" export managedServerNameBase="oam_server" export managedServerPort="14100" export image="container-registry.oracle.com/middleware/oam_cpu:14.1.2.1.0-jdk17-ol8-<YYMMDD>" export imagePullPolicy="IfNotPresent" export imagePullSecretName="orclcred" export productionModeEnabled="true" export weblogicCredentialsSecretName="accessdomain-credentials" export includeServerOutInPodLog="true" export logHome="/u01/oracle/user_projects/domains/logs/accessdomain" export httpAccessLogInLogHome="true" export t3ChannelPort="30012" export exposeAdminT3Channel="false" export adminNodePort="30701" export exposeAdminNodePort="false" export namespace="oamns" javaOptions=-Dweblogic.StdoutDebugEnabled=false export persistentVolumeClaimName="accessdomain-domain-pvc" export domainPVMountPath="/u01/oracle/user_projects/domains" export createDomainScriptsMountPath="/u01/weblogic" export createDomainScriptName="create-domain-job.sh" export createDomainFilesDir="wlst" export rcuSchemaPrefix="OAMK8S" export rcuDatabaseURL="mydatabasehost.example.com:1521/orcl.example.com" export rcuCredentialsSecret="accessdomain-rcu-credentials" export datasourceType="generic" validateWlsDomainName called with accessdomain createFiles - valuesInputFile is create-domain-inputs.yaml createDomainScriptName is create-domain-job.sh Generating output/weblogic-domains/accessdomain/create-domain-job.yaml Generating output/weblogic-domains/accessdomain/delete-domain-job.yaml Generating output/weblogic-domains/accessdomain/domain.yaml Checking to see if the secret accessdomain-credentials exists in namespace oamns configmap/accessdomain-create-oam-infra-domain-job-cm created Checking the configmap accessdomain-create-oam-infra-domain-job-cm was created configmap/accessdomain-create-oam-infra-domain-job-cm labeled Checking if object type job with name accessdomain-create-oam-infra-domain-job exists No resources found in oamns namespace. Creating the domain by creating the job output/weblogic-domains/accessdomain/create-domain-job.yaml job.batch/accessdomain-create-oam-infra-domain-job created Waiting for the job to complete... status on iteration 1 of 20 pod accessdomain-create-oam-infra-domain-job-6tgw4 status is Running status on iteration 2 of 20 pod accessdomain-create-oam-infra-domain-job-6tgw4 status is Running status on iteration 3 of 20 pod accessdomain-create-oam-infra-domain-job-6tgw4 status is Running status on iteration 4 of 20 pod accessdomain-create-oam-infra-domain-job-6tgw4 status is Running status on iteration 5 of 20 pod accessdomain-create-oam-infra-domain-job-6tgw4 status is Running status on iteration 6 of 20 pod accessdomain-create-oam-infra-domain-job-6tgw4 status is Completed Domain accessdomain was created and will be started by the WebLogic Kubernetes Operator The following files were generated: output/weblogic-domains/accessdomain/create-domain-inputs.yaml output/weblogic-domains/accessdomain/create-domain-job.yaml output/weblogic-domains/accessdomain/domain.yaml