Skip to content

Configuring OpenSearch for Confluence

Confluence and Helm chart version

OpenSearch is supported in Confluence 8.9.0 and Helm chart 1.19 onwards.

As Confluence instances grow in size and scale, the default search engine, Lucene, may be slower to index and return search results. To address this, Confluence Data Center offers an alternative search engine as an opt-in feature — OpenSearch.

Find more information on advantages of using OpenSearch in the official documentation

Deploy OpenSearch Helm Chart with Confluence

Support disclaimer

Atlassian does not officially support OpenSearch Helm chart that can be installed with the Confluence Helm release. Should you encounter any issues with the deployment, maintenance and upgrades, reach out to the vendor. Moreover, if you intend to deploy OpenSearch to a critical Kubernetes environment, make sure you follow all the best practices, i.e. deploy a multi node cluster, use taints and tolerations, affinity rules, sufficient resources requests, have DR and backup strategies etc.

Deploy with the default settings

To deploy OpenSearch Helm chart and automatically configure Confluence to use it as a search platform, set the following in your Helm values file:

  enabled: true
This will:

  • auto-generate the initial OpenSearch admin password and create a Kubernetes secret with OPENSEARCH_INITIAL_ADMIN_PASSWORD key
  • deploy OpenSearch Helm chart to the target namespace with the default settings: single node, 1Gi memory/1 vCPU resources requests, 10Gi storage request
  • configure Confluence to use the deployed OpenSearch cluster by adding -Dsearch.platform=opensearch -Dopensearch.http.url=http://opensearch-cluster-master:9200 -Dopensearch.username=admin -Dopensearch.password=yourPassword to the JVM ConfigMap

Override OpenSearch Helm chart values

You can configure your OpenSearch cluster and the deployment options by overriding any values that the Helm chart exposes. OpenSearch values must be nested under opensearch stanza in your Helm values file, for example:

  singleNode: false
  replicas: 5
    opensearch.yml: | opensearch-cluster