Skip to content

Create an OpenSearch instanceΒΆ

Explicitly creating an OpenSearch instance is done by adding a OpenSearch resource to your namespace with detailed configuration in a GCP cluster. In your Application or Naisjob specifications, you specify an instance and access.

The minimal OpenSearch resource looks like this:

opensearch.yaml
apiVersion: aiven.io/v1alpha1
kind: OpenSearch
metadata:
  labels:
    team: myteam
  name: opensearch-myteam-myinstance
  namespace: myteam
spec:
  plan: hobbyist
  project: nav-dev

The actual name of the OpenSearch instance will be opensearch-<TEAM NAME>-<INSTANCE NAME> (where TEAM NAME is the same as the namespace your application resides in). The resource needs to have this full name in order to be accepted.

As we use Aivens operator, the OpenSearch resource is documented in detail in the Aiven documentation. Check the reference for any other fields that might be of interest.