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
version: v1
type: <RESOURCE_TYPE>
name: <RESOURCE_NAME>
spec:
<CONFIGURATION>Fields ΒΆ
| Field | Type | Required | Description |
|---|---|---|---|
version | string | Yes | Manifest schema version. Currently v1. |
type | string | Yes | The kind of resource to declare (case-sensitive). Examples: Valkey, OpenSearch. |
name | string | Yes | Unique name for the resource instance within your team's environment. |
spec | object | Yes | Configuration 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
typewithin the team's environment.
File and directory conventions ΒΆ
| Convention | Path format | Example |
|---|---|---|
| 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: