radex.io

aboutarchivefediversecode

Jsonnet tutorial

October 12, 2024. Human-written.

I recorded a 13-minute Jsonnet tutorial.

Jsonnet is an excellent choice for a configuration language, such as for Kubernetes IaC (but also, any other complex config that’s hard to maintain by hand).

Unlike JSON and YAML, you can easily reuse snippets, create complex templates with logic that determines exact contents based on parameters, import arbitrary files, generate json/yaml/ini/python/etc from plain structures, and so much more. Yet, it remains just a description language, avoiding the complexity of using scripting languages to generate config files.

Jsonnet absolutely deserves to be more popular than it is, so I’m hoping my tutorial will inspire at least a few of you to give it a try.

Give it a watch:

Published October 12, 2024. Send feedback.