Re:Why is Kubernetes getting so popular?
by kasey_junk on Friday May 29, 2020 @08:34PM
(#23357307)
Conversely I think the trend of writing infrastructure as yaml may be the worst part of modern ops. It’s really hard to think of a worse language for this.
[ Parent
| on HN ]
Fortunately YAML is not actually necessary in k8s, and only provided as a convenience because writing JSON by hand (or Proto3, lol) is annoying verging on insane.
We can build higher level abstractions easily having a schema to target and we can build them in whatever we want. That's a big boon for me :)
Re:Why is Kubernetes getting so popular?
by kasey_junk on Saturday May 30, 2020 @02:20PM
(#23363332)
For kubernetes thats absolutely true and I think more people should do that (disclaimer I work with this https://github.com/stripe/skycfg daily). I think it actually would be easier for people to understand the k8s system if they did.
But, yaml is now everywhere in the ops space. Config management systems use it, metrics systems use it, its the defacto configuration format right now and that is unfortunate cause its bad.
Why?
We have plenty of yaml 'code' which is simple and does exactly what it needs to do.
For all other usecases, there are plenty of alternatives, including libs for your preferred language.
Most people use the yaml way because its easy and does exactly what it needs to do.
Everyone else has plenty of well supported and well working alternatives.
Re:Why is Kubernetes getting so popular?
by kasey_junk on Saturday May 30, 2020 @08:50AM
(#23360800)
Its typing is too weak. It’s block scoping is dangerous. References, classes and attachments are all pretty bad for reuse. Schemas are bolt on and there is no standard query language for it.