Live data from Hacker News

Ksonnet: Simplify working with Kubernetes configurations

blog.heptio.com

1–10 of 26 posts

Re: Ksonnet: Simplify working with Kubernetes configurations

#3
Glad someone put in the effort for this.

I wrote something that fills this econiche sometime last year in Ruby (https://github.com/matsuri-rb/matsuri). Same ideas: mixins, generation of Kubernetes resources, etc. For better or worse, it also adds the idea of combining all the deployment environments into a single workflow and command line interface.

The big difference? Ksonnet is better documented and promoted, lighter-weight, and now better supported within the community.

Re: Ksonnet: Simplify working with Kubernetes configurations

#5
I have been working on a UI based system for managing these configurations in a way that doesn't rely on any particular syntax but allows you to construct object graphs (that is what they all boil down to) directly: http://blog.crudzilla.com/2016/10/managing-configurations-wi...

I will be interested in feedback on how such an approach could be helpful in managing complex configurations.

Re: Ksonnet: Simplify working with Kubernetes configurations

#7
post #3

Glad someone put in the effort for this. I wrote something that fills this econiche sometime last year in Ruby ( https://github.com/matsuri-rb/matsuri ). Same ideas: mixins, generation of Kubernetes resources, etc. For better or worse, it also adds the idea of combining all the deployment environments into a single workflow and command line interface. The big difference? Ksonnet is better documented and promoted, lig…

can you point to some examples of this matsuri? I failed to figure out what it is from the link you pasted.

A nice thing about jsonnet is that is it's a native data templating language, you don't have to compose a structured data format with a textual template language and deal with things as trailing commas in json or indentation (!!!) in yaml.

It offers a sound model for extending and overriding values.

Another thing: it's a fully featured programming language, but it's purely functional so you are guaranteed that your templates won't have surprising side effects.

In this respect, the most similar alternative is the Nix functional language.

Re: Ksonnet: Simplify working with Kubernetes configurations

#8
post #3

Glad someone put in the effort for this. I wrote something that fills this econiche sometime last year in Ruby ( https://github.com/matsuri-rb/matsuri ). Same ideas: mixins, generation of Kubernetes resources, etc. For better or worse, it also adds the idea of combining all the deployment environments into a single workflow and command line interface. The big difference? Ksonnet is better documented and promoted, lig…

[OP here]

Another goal here is to have something that is easy to embed/repurpose. ruby is pretty heavyweight from that point of view.

While jsonnet is a C program right now (https://github.com/google/jsonnet) we are looking at picking up work on a go port so it is easier to integrate with the kubernetes universe.

Re: Ksonnet: Simplify working with Kubernetes configurations

#9
post #4

This links to a blog post that is mostly marketing fluff and quotes from fawning CTOs. Useful documentation and examples are here: http://ksonnet.heptio.com

Also look at http://ksonnet.io that redirects to the github org for now. We will work on a community page to host there soon.
Post reply on HN