# Nais OpenSearch example YAML

<!--
  This documentation was automatically generated by https://github.com/nais/pgrator/actions

  DO NOT MAKE MANUAL CHANGES TO THIS FILE, THEY WILL BE OVERWRITTEN!
-->

This is a complete example of a `OpenSearch` resource.

For an in-depth explanation of each field, head over to the [reference documentation](/persistence/opensearch/reference/spec.md).

```yaml
version: v1
type: OpenSearch
name: myopensearch
spec:
  http:
    maxContentLength: 100Mi
  indices:
    queryBoolMaxClauseCount: 1024
  memory: 4GB
  shardIndexingPressure:
    enabled: true
    enforced: true
  storageGB: 80
  tier: SingleNode
  version: "3.3"
```
