Use `---` to separate resources or configs.
Section: Multi-document YAML
Two YAML documents in one file
yaml
yaml
app: api
port: 8080
---
app: worker
port: 9090Explanation
Common in Kubernetes and other tools that process a stream of YAML documents.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Multi-document YAML
Apply a multi-document manifest
Send several Kubernetes resources in one file.
Explicit document end marker
Use `...` to mark the end of a document when needed.
Split YAML documents into separate files
Write each YAML document to its own output file.
Select Kubernetes documents by kind
Filter documents in a manifest stream.
Render Helm templates to YAML
Generate YAML output for inspection before deployment.