Dry Run

Difficulty: Beginner

Question

How do you test a command with kubectl without actually creating the resource?

Answer

Use the `--dry-run=client` or `--dry-run=server` flag combined with `-o yaml`.

Concepts covered

CLI, Validation