Live data from Hacker News

Kubernetes YAML Generator

k8syaml.com

1–10 of 127 posts

Re: Kubernetes YAML Generator

#3
Looks very useful. In my opinion the configuration format should have been built like this from the get go.

Clear schema (like TypeScript interfaces or something similar) which allows generating an UI.

Re: Kubernetes YAML Generator

#5
Ooooh nice! When I saw the title I was hoping this is what it would be. I'd dreamed of building something like this, but never had the time or the buy in.

Aside from making it easy to generate k8s manifests, this could also be a great learning tool. If you allowed this to generate multiple resources that are linked, it could be a great illustration of how different resources fit together.

Re: Kubernetes YAML Generator

#7
Super cool to see these sorts of tools. They're great for learning the kube API.

For production-y things however, some meta-config language that allows deterministic templateing would be a huge improvement. It allows you to make sweeping/uniform infrastructure changes from a single library or tool change.

Kubecfg is a good example of the basics one could implement [0] although it's examples aren't as fully fledged and organized as they could be.

[0] - https://github.com/bitnami/kubecfg/blob/master/examples/gues...

Re: Kubernetes YAML Generator

#8
post #3

Looks very useful. In my opinion the configuration format should have been built like this from the get go. Clear schema (like TypeScript interfaces or something similar) which allows generating an UI.

All of the standard Kubernetes resource definitions have a schema [1] [2] which is already used to, for instance, generate Go code [3] and documentation [4].

[1] - https://kubernetes.io/docs/concepts/overview/kubernetes-api/...

[2] - https://github.com/kubernetes/kubernetes/blob/release-1.19/a...

[3] - https://godoc.org/k8s.io/client-go/kubernetes/typed/core/v1

[4] - https://kubernetes.io/docs/reference/generated/kubernetes-ap...

Re: Kubernetes YAML Generator

#10
post #7

Super cool to see these sorts of tools. They're great for learning the kube API. For production-y things however, some meta-config language that allows deterministic templateing would be a huge improvement. It allows you to make sweeping/uniform infrastructure changes from a single library or tool change. Kubecfg is a good example of the basics one could implement [0] although it's examples aren't as fully fledged an…

I can second using jsonnet and kubecfg for this. Not only you start out with some very useful abstraction from kube.libsonnet, but are also able to build your own abstractions easily, ones that are specific to you organization/codebase/release cycle. All from a declarative, lazily evaluated, pure language.
Post reply on HN