Manifest reference ΒΆ

This document specifies the top-level structure and conventions for Nais manifest files.

For an overview of concepts and workflows, see the Nais manifests explanation.

Top-level structure ΒΆ

All Nais manifests consist of four top-level keys:

yaml

Fields ΒΆ

FieldTypeRequiredDescription
versionstringYesManifest schema version. Currently v1.
typestringYesThe kind of resource to declare (case-sensitive). Examples: Valkey, OpenSearch.
namestringYesUnique name for the resource instance within your team's environment.
specobjectYesConfiguration specific to the resource type.

Naming constraints ΒΆ

The name field must:

  • Consist only of lowercase alphanumeric characters and hyphens (-).
  • Begin and end with an alphanumeric character.
  • Be unique among resources of the same type within the team's environment.

File and directory conventions ΒΆ

ConventionPath formatExample
Base directory.nais/.nais/
Base manifest.nais/<name>.yaml.nais/valkey.yaml
Environment mixin.nais/<name>.<environment>.yaml.nais/valkey.prod-gcp.yaml

See Environment mixins for details on how base manifests and mixins are merged during nais apply.

Resource specifications ΒΆ

The fields available under spec depend on the resource type. Refer to the corresponding reference documentation for full specifications: