TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Kubernetes Spec Explorer

216 pointsby goenning5 months ago
I built an interactive explorer for Kubernetes resources spec<p>A few things included:<p>- Tree view with schema, type and description of all native resources - History changes since version X (properties added&#x2F;removed&#x2F;modified) - Examples of some resources that you can easily copy as a starting point - Supports all versions since X, including the newly released 1.32 - I also want to add support for popular CRD, but I’m not sure how I’ll do that yet, I’m open to suggestions!<p>Everything is auto generated based on the OpenAPI spec, with some manual inputs for examples and external links.<p>Hope you like it and if there’s anything else you think it could be useful just let me know.

20 comments

abuckenheimer5 months ago
This is really nice! The context switching that comes from using the [official k8s reference](<a href="https:&#x2F;&#x2F;kubernetes.io&#x2F;docs&#x2F;reference&#x2F;kubernetes-api&#x2F;workload-resources&#x2F;deployment-v1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kubernetes.io&#x2F;docs&#x2F;reference&#x2F;kubernetes-api&#x2F;workload...</a>) 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 whatever parent path your writing it for.<p>Maybe one nitpick would be to keep colon between the key and the type so one can copy paste multiple lines of relevant spec to be filled in your editor easily.
评论 #42404049 未加载
评论 #42402168 未加载
emmanueloga_5 months ago
The most frustrating part of Kubernetes (and I like k8s) is its data schema story:<p>* Go types are converted to Protobuf via go-to-protobuf.<p>* Protobuf generates OpenAPI specs and JSONSchemas via kube-openapi.<p>* Users rely on tools and DSLs to manage the complexity of YAML manifests.<p>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.<p>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.<p>The proliferation of tools to manage YAML manifests is a sign of room for improvement. Perhaps a &quot;k8s 2.0&quot; could <i>start</i> with JSONSchemas: this could encourage minimal, flat, simple, and user-friendly schemas, and hopefully a more coherent internal pipeline.
评论 #42407392 未加载
joushx5 months ago
Please note that kubectl also contains something similar: e.g. kubectl explain deployment.spec
评论 #42406759 未加载
leg1005 months ago
I like the version diffs.<p>Perhaps add an &quot;expand all&quot; button to avoid clicking individually on properties to see their descriptions?<p>I usually rely on the official generated docs (all on one giant page):<p><a href="https:&#x2F;&#x2F;kubernetes.io&#x2F;docs&#x2F;reference&#x2F;generated&#x2F;kubernetes-api&#x2F;v1.32&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kubernetes.io&#x2F;docs&#x2F;reference&#x2F;generated&#x2F;kubernetes-ap...</a>
fikama5 months ago
Official Kubernetes docs are terrible. No versioning (most of the links on the internet are dead). A lot of text with not much exmaples. This one looks nice. Spec with full list of options, version history and examples. That&#x27;s everything anyone would need. It reminds me of my favorite ansible documentation&#x2F;spec which is a pleasure to use. Love it
robinhoodexe5 months ago
Very nice!<p>Adding support for CRDs would be very nice. Maybe look up popular CNCF projects and find their official helm charts, that contain the CRDs?
评论 #42400991 未加载
vbezhenar5 months ago
Why order of fields is different? Example:<p><a href="https:&#x2F;&#x2F;kubespec.dev&#x2F;apps&#x2F;v1&#x2F;Deployment" rel="nofollow">https:&#x2F;&#x2F;kubespec.dev&#x2F;apps&#x2F;v1&#x2F;Deployment</a> <a href="https:&#x2F;&#x2F;kubernetes.io&#x2F;docs&#x2F;reference&#x2F;kubernetes-api&#x2F;workload-resources&#x2F;deployment-v1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kubernetes.io&#x2F;docs&#x2F;reference&#x2F;kubernetes-api&#x2F;workload...</a><p><pre><code> minReadySeconds: integer paused: boolean progressDeadlineSeconds: integer ... </code></pre> vs<p><pre><code> selector template replicas minReadySeconds ... </code></pre> I&#x27;m very nitpicky about order of fields and I always follow kubernetes documentation order. Not sure where it really comes from, but generally it&#x27;s good enough and better than alphabetical order (or inconsistent order).
评论 #42401547 未加载
评论 #42401422 未加载
hintymad5 months ago
A naive question: why does k8s require more documentation and understanding than using EC2 + EBS, if I don&#x27;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&#x27;s APIs to operate my clusters, such as autoscaling and auto healing. I don&#x27;t have to worry about networking except probably private IP vs public IP. I barely need to spend time learning about EC2&#x2F;EBS and simply use my intuitive to look up documentation when needed. Most of the EC2&#x2F;EBS concepts are just intuitive. So, why do so many people say that k8s is complex and hard to get right? Shouldn&#x27;t the default setup as easy as EC2+EBS, and leave the doors to more advanced stuff?
评论 #42404963 未加载
评论 #42411098 未加载
keisku5 months ago
This CLI should solve similar issues!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;keisku&#x2F;kubectl-explore">https:&#x2F;&#x2F;github.com&#x2F;keisku&#x2F;kubectl-explore</a>
imcritic5 months ago
If you only knew how I hate and struggle with the official docs and how your service is a very needed breath of fresh air! Thank you a lot!
JohnMakin5 months ago
This is so awesome and at a glance far better than the official documentation. Thank you!
astonex5 months ago
This is great thank you. Been a k8s admin for many years but obviously still need to look up fields from time to time, and trying to find it or an example in the k8s documentation is always difficult
wpm5 months ago
This is what the official reference docs should look and work like. Well done.
评论 #42400973 未加载
elliot075 months ago
It would be great if you could paste in an existing k8s file to analyze as well. Would help for onboarding&#x2F;modifying existing templates you haven&#x27;t worked on in awhile, etc.
JeffMcCune5 months ago
Very nice, would love to see a kubectl explain type plugin to integrate with this somehow.
nosefrog5 months ago
Very cool! Finding the Kubernetes API docs is such a pain.
lormayna5 months ago
Thank you! This is really really useful
swills5 months ago
Looks very nice! Thanks!
pythops5 months ago
Really nice, GJ !
devops995 months ago
Nice.