b. Upgrade Elasticsearch and Kibana

This section shows how to upgrade Elasticsearch and Kibana.

To determine if this step is required for the version you are upgrading from, refer to the Release Notes.

Download the latest code repository

Download the latest code repository as follows:

  1. Create a working directory to setup the source code.

    $ mkdir <workdir>

    For example:

    $ mkdir /scratch/OUDSMK8SApr24
  2. Download the latest OUDSM deployment scripts from the OUDSM repository.

    $ cd <workdir>
    $ git clone https://github.com/oracle/fmw-kubernetes.git

    For example:

    $ cd /scratch/OUDSMK8SApr24
    $ git clone https://github.com/oracle/fmw-kubernetes.git
  3. Set the $WORKDIR environment variable as follows:

    $ export WORKDIR=<workdir>/fmw-kubernetes/OracleUnifiedDirectorySM

    For example:

    $ export WORKDIR=/scratch/OUDSMK8SApr24/fmw-kubernetes/OracleUnifiedDirectorySM

Undeploy Elasticsearch and Kibana

From October 22 (22.4.1) onwards, OUDSM logs should be stored on a centralized Elasticsearch and Kibana (ELK) stack.

Deployments prior to October 22 (22.4.1) used local deployments of Elasticsearch and Kibana.

If you are upgrading from July 22 (22.3.1) or earlier, to April 24 (24.2.1), you must first undeploy Elasticsearch and Kibana using the steps below:

  1. Navigate to the $WORKDIR/kubernetes/helm directory and create a logging-override-values-uninstall.yaml with the following:

      enabled: false
  2. Run the following command to remove the existing ELK deployment:

    $ helm upgrade --namespace <domain_namespace> --values <valuesfile.yaml> <releasename> oudsm --reuse-values

    For example:

    $ helm upgrade --namespace oudsmns --values logging-override-values-uninstall.yaml oudsm oudsm --reuse-values

Deploy Elasticsearch and Kibana in centralized stack

  1. Follow Install Elasticsearch stack and Kibana to deploy Elasticsearch and Kibana in a centralized stack.