This is a cache of https://docs.openshift.com/container-platform/4.2/service_mesh/service_mesh_day_two/configuring-jaeger.html. It is a snapshot of the page at 2024-11-23T02:36:54.785+0000.
Configuring Jaeger - Day Two | <strong>service</strong> Mesh | OpenShift Container Platform 4.2
×

This section describes configuration that is performed in the CRD or in the CR file.

Prerequisites
  • Access to an OpenShift Container Platform cluster with cluster-admin user privileges.

  • Elasticsearch operator has been installed on the cluster

  • Jaeger operator has been installed on the cluster.

Configuring the Elasticsearch index cleaner job

When the service Mesh Operator creates the serviceMeshControlPlane it also creates the custom resource (CR) for Jaeger. The Jaeger operator then uses this CR when creating Jaeger instances.

When using Elasticsearch storage, by default a job is created to clean old traces from it. To configure the options for this job, you edit the Jaeger custom resource (CR), to customize it for your use case. The relevant options are listed below.

  apiVersion: jaegertracing.io/v1
  kind: Jaeger
  spec:
    strategy: production
    storage:
      type: elasticsearch
      esIndexCleaner:
        enabled: false
        numberOfDays: 7
        schedule: "55 23 * * *"
Table 1. Elasticsearch index cleaner parameters
Parameter Values Description

enabled

true/ false

Enable or disable the index cleaner job.

numberOfDays

integer value

Number of days to wait before deleting an index.

schedule

"55 23 * * *"

Cron expression for the job to run