Why Too Many Ways to Write the Same Thing Cause Trouble
Why the Kubernetes post says YAML's many choices are not equally good for writing manifests, what goes wrong with them and where it says KYAML sits.
For: Learners new to configuration files.
More choices than are good
It's that YAML gives you a lot of choices, and not all of them are equally good for writing Kubernetes manifests.[1]
What goes wrong with them
Some features make files harder to read, some are easy to misuse and others can lead to surprising behavior.[1]
In standard YAML, NO is parsed as a boolean false, not the string "NO" and it has caught more than a few people off guard.[1]
Where KYAML sits
KYAML sits halfway between JSON and YAML, more explicit than default YAML, friendlier than JSON.[1]
Sources
- How to Pretty-Print Your Kubernetes YAML as KYAML (kubernetes.io · checked )
More articles
- LearningWhat a Request and a Limit Mean on a Shared GPUWhy NVIDIA's post says GPUs are shared, what a request and a limit declare for a workload and what isolation each workload gets.
- LearningWhy Kubernetes Watches Instead of PollingWhy the Kubernetes post says it was built around a watch model rather than polling, and what it says the controller-runtime cache really is.
- LearningNVKE and NVKR: What the Two NVIDIA Projects DoWhat NVIDIA's announcement says NVKE and NVKR do, that they can be used together or apart, and their license and release status.