15.1 Prerequisite Configurations

In order to use HPA, Oracle Identity Governance (OIG) must have been created with the required resources parameter. For OIG domains created with WLST scripts, this is as per Setting the OIG Server Memory Parameters. For OIG domains created with WDT models, the values should be set by default. For example:

For example:
  serverPod:
    env:
    - name: USER_MEM_ARGS
      value: -XX:+UseContainerSupport -Djava.security.egd=file:/dev/./urandom -Xms8192m -Xmx8192m
    resources:
      limits:
        cpu: "2"
        memory: 8Gi
      requests:
        cpu: 1000m
        memory: 4Gi
If you created the OIG domain without setting these parameters, then you can update the domain using the following steps:
  1. Run the following command to edit the cluster:
    kubectl edit cluster <cluster> -n <namespace>
    For example:
    kubectl edit cluster governancedomain-oim-cluster -n oigns
    

    Note:

    This opens an edit session for the cluster where parameters can be changed using standard vi commands.
  2. In the edit session, search for spec:, and then look for the replicas parameter under clusterName: oim_cluster. Change the entry so it looks as follows:
    spec:
      clusterName: oim_cluster
      replicas: 1
      serverPod:
        env:
        - name: USER_MEM_ARGS
          value: -XX:+UseContainerSupport -Djava.security.egd=file:/dev/./urandom -Xms8192m -Xmx8192m
        resources:
          limits:
            cpu: "2"
            memory: 8Gi
          requests:
            cpu: 1000m
            memory: 4Gi
      serverService:
        precreateService: true
        ...
    
  3. Save the file and exit (:wq!).
    The output will look similar to the following:
    cluster.weblogic.oracle/governancedomain-oim-cluster edited
    

    The OIG managed server pods will then automatically be restarted.