Separate resources with `---`.
Section: Manifest Basics
Multiple resources in one YAML file
yaml
yaml
apiVersion: v1
kind: Namespace
metadata:
name: demo
---
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
namespace: demo
data:
APP_ENV: productionExplanation
Grouping related objects into one manifest is convenient for app-level deployment and review.
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 Manifest Basics