Show HN: Kubernetes Spec Explorer
21–30 of 33 posts
Re: Show HN: Kubernetes Spec Explorer
#22Re: Show HN: Kubernetes Spec Explorer
#23This is really nice! The context switching that comes from using the [official k8s reference]( https://kubernetes.io/docs/reference/kubernetes-api/workload... ) is a real pain. If your writing a deployment and need to check one thing about the pod spec all of a sudden you jump to a new page and lost where you were. Ontop of that this keeps track of the indentation level the spec your looking at within the context of…
In my opinion, it comes with better navigation, safe to open in new tabs to drill-deep and unwind when done, much better use of horizontal space. Even though it is generated, I looks to have much of the exact same text?
Re: Show HN: Kubernetes Spec Explorer
#24* Go types are converted to Protobuf via go-to-protobuf.
* Protobuf generates OpenAPI specs and JSONSchemas via kube-openapi.
* Users rely on tools and DSLs to manage the complexity of YAML manifests.
This pipeline prioritizes some convenience for the core team over simplicity for end users. In the end, that minimal convenience transmutes into layers of convoluted code generators to maintain for the core team, and unwieldy, tens-of-thousands-of-lines schemas for the end users.
Also, does Kubernetes really benefit enough from Protobuf to justify the complexity? k8s IPC and network traffic likely account for a small fraction of overall app traffic. Perhaps JSON and schemas for validation could be enough.
The proliferation of tools to manage YAML manifests is a sign of room for improvement. Perhaps a "k8s 2.0" could start with JSONSchemas: this could encourage minimal, flat, simple, and user-friendly schemas, and hopefully a more coherent internal pipeline.
Re: Show HN: Kubernetes Spec Explorer
#25Re: Show HN: Kubernetes Spec Explorer
#26A naive question: why does k8s require more documentation and understanding than using EC2 + EBS, if I don't have to consider cost. To set up my infrastructure, I launch clusters for my services, I map EBS or use ephemeral storage for stateful services. I use EC2's APIs to operate my clusters, such as autoscaling and auto healing. I don't have to worry about networking except probably private IP vs public IP. I barel…
Start with Minikube on Ubuntu via Snap if you want the really easy way. Deploy that on Hetzner or something using Cloud-init. Auto cluster discovery is a job for one evening. I like to use Pulumi or Terraform to see what I can play with on a cloud provider and operate it in a sane way.
And I use the K8s provider too: https://registry.terraform.io/providers/hashicorp/kubernetes...
Re: Show HN: Kubernetes Spec Explorer
#27Re: Show HN: Kubernetes Spec Explorer
#28Please note that kubectl also contains something similar: e.g. kubectl explain deployment.spec
Re: Show HN: Kubernetes Spec Explorer
#29Re: Show HN: Kubernetes Spec Explorer
#30The most frustrating part of Kubernetes (and I like k8s) is its data schema story: * Go types are converted to Protobuf via go-to-protobuf. * Protobuf generates OpenAPI specs and JSONSchemas via kube-openapi. * Users rely on tools and DSLs to manage the complexity of YAML manifests. This pipeline prioritizes some convenience for the core team over simplicity for end users. In the end, that minimal convenience transmu…