6.4 Setting Up the Code Repository for OIG

To deploy Oracle Identity Governance (OIG) you need to set up the code repository which provides sample deployment yaml files.

The OIG deployment on Kubernetes leverages the WebLogic Kubernetes Operator infrastructure, and deployment scripts provided by Oracle for creating OIG containers.

Perform the following steps to set up the OIG deployment scripts:

Note:

The steps below should be performed on the administrative node that has access to the Kubernetes cluster.
  1. Create a working directory to setup the source code:
    mkdir <workdir>
    For example:
    mkdir /OIGK8S
  2. Download the latest OIG deployment scripts from the OIG repository:
    cd <workdir>
    git clone https://github.com/oracle/fmw-kubernetes.git
    For example:
    cd /OIGK8S
    git clone https://github.com/oracle/fmw-kubernetes.git
    The output will look similar to the following:
    Cloning into 'fmw-kubernetes'...
    remote: Enumerating objects: 41547, done.
    remote: Counting objects: 100% (6171/6171), done.
    remote: Compressing objects: 100% (504/504), done.
    remote: Total 41547 (delta 5638), reused 5919 (delta 5481), pack-reused 35376 (from 3)
    Receiving objects: 100% (41547/41547), 70.32 MiB | 13.12 MiB/s, done.
    Resolving deltas: 100% (22214/22214), done.
    Checking connectivity... done.
    Checking out files: 100% (19611/19611), done
  3. Set the $WORKDIR environment variable as follows:
    export WORKDIR=<workdir>/fmw-kubernetes/OracleIdentityGovernance
    For example:
    export WORKDIR=/OIGK8S/fmw-kubernetes/OracleIdentityGovernance
  4. Run the following command and see if the WebLogic custom resource definition name already exists:
    kubectl get crd
    In the output you should see:
    No resources found
    If you see any of the following:
    NAME                     AGE
    clusters.weblogic.oracle 5d
    domains.weblogic.oracle  5d
    then run the following command to delete the existing crd’s:
    kubectl delete crd clusters.weblogic.oracle
    kubectl delete crd domains.weblogic.oracle