7.1.6 Creating the domain.yaml

To create the domain.yaml file used in the Oracle Identity Governance (OIG) deployment:

  1. Navigate to the $WORKDIR/kubernetes/create-oim-domain/domain-home-on-pv:
    cd $WORKDIR/kubernetes/create-oim-domain/domain-home-on-pv
  2. 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:
    ./create-domain.sh -i create-domain-inputs.yaml -o output
    The output will look similar to the following:
    Input parameters being used
    export version="create-weblogic-sample-domain-inputs-v1"
    export adminPort="7001"
    export adminServerName="AdminServer"
    export domainUID="governancedomain"
    export domainHome="/u01/oracle/user_projects/domains/governancedomain"
    export serverStartPolicy="IfNeeded"
    export clusterName="oim_cluster"
    export configuredManagedServerCount="5"
    export initialManagedServerReplicas="1"
    export managedServerNameBase="oim_server"
    export managedServerPort="14000"
    export image="container-registry.oracle.com/middleware/oig_cpu:14.1.2.1.0-jdk8-ol8-<YYMMDD>"
    export imagePullPolicy="IfNotPresent"
    export imagePullSecretName="orclcred"
    export productionModeEnabled="true"
    export weblogicCredentialsSecretName="oig-domain-credentials"
    export includeServerOutInPodLog="true"
    export logHome="/u01/oracle/user_projects/domains/logs/governancedomain"
    export t3ChannelPort="30012"
    export exposeAdminT3Channel="false"
    export adminNodePort="30701"
    export exposeAdminNodePort="false"
    export namespace="oigns"
    javaOptions=-Dweblogic.StdoutDebugEnabled=false
    export persistentVolumeClaimName="governancedomain-domain-pvc"
    export domainPVMountPath="/u01/oracle/user_projects/domains"
    export createDomainScriptsMountPath="/u01/weblogic"
    export createDomainScriptName="create-domain-job.sh"
    export createDomainFilesDir="wlst"
    export rcuSchemaPrefix="OIGK8S"
    export rcuDatabaseURL="mydatabasehost.example.com:1521/orcl.example.com"
    export rcuCredentialsSecret="oig-rcu-credentials"
    export frontEndHost="example.com"
    export frontEndPort="14100"
    export datasourceType="generic"
    
    validateWlsDomainName called with governancedomain
    createFiles - valuesInputFile is create-domain-inputs.yaml
    createDomainScriptName is create-domain-job.sh
    Generating output/weblogic-domains/governancedomain/create-domain-job.yaml
    Generating output/weblogic-domains/governancedomain/delete-domain-job.yaml
    Generating output/weblogic-domains/governancedomain/domain.yaml
    Checking to see if the secret governancedomain-domain-credentials exists in namespace oigns
    configmap/governancedomain-create-fmw-infra-sample-domain-job-cm created
    Checking the configmap governancedomain-create-fmw-infra-sample-domain-job-cm was created
    configmap/governancedomain-create-fmw-infra-sample-domain-job-cm labeled
    Checking if object type job with name governancedomain-create-fmw-infra-sample-domain-job exists
    No resources found in oigns namespace.
    Creating the domain by creating the job output/weblogic-domains/governancedomain/create-domain-job.yaml
    job.batch/governancedomain-create-fmw-infra-sample-domain-job created
    Waiting for the job to complete...
    status on iteration 1 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Running
    status on iteration 2 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Running
    status on iteration 3 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Running
    status on iteration 4 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Running
    status on iteration 5 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Running
    status on iteration 6 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Running
    status on iteration 7 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Running
    status on iteration 8 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Running
    status on iteration 9 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Running
    status on iteration 10 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Running
    status on iteration 11 of 40
    pod governancedomain-create-fmw-infra-sample-domain-job-8cww8 status is Completed
    
    Domain governancedomain was created and will be started by the WebLogic Kubernetes Operator
    
    The following files were generated:
      output/weblogic-domains/governancedomain/create-domain-inputs.yaml
      output/weblogic-domains/governancedomain/create-domain-job.yaml
      output/weblogic-domains/governancedomain/domain.yaml
    sed
    
    Completed
    

    Note:

    If the domain creation fails, refer to the Domain Creation Failure With WLST in Known Issues.