Kubernetes

How to test a manifest is valid?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

with --dry-run flag which will not actually create it, but it will test it and you can find this way, any syntax issues.

k create -f YAML_FILE --dry-run