TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Kubernetes YAML Generator

270 点作者 paulstovell超过 4 年前

15 条评论

tn890超过 4 年前
I wonder what the need for tools such as this or other &quot;Kubernetes-by-example&quot; type pages tell us about the complexity of configuring Kubernetes resources.<p>Do we need a better layer of abstraction, i.e. better adoption and tighter integration for something like kustomize? Have we fucked up completely with Kubernetes due to it being outrageously complicated for simple tasks? How we redesign this to be simpler? Is the complexity even a problem for the target audience?<p>I&#x27;ve no idea. I just know I&#x27;m a kubernetes admin and I can&#x27;t write a deployment yaml without googling or copy&#x2F;pasting.
评论 #24421311 未加载
评论 #24421220 未加载
评论 #24422628 未加载
评论 #24421307 未加载
评论 #24421327 未加载
评论 #24422542 未加载
评论 #24421576 未加载
评论 #24421896 未加载
评论 #24424463 未加载
评论 #24421769 未加载
评论 #24422563 未加载
评论 #24422091 未加载
评论 #24424236 未加载
评论 #24428424 未加载
评论 #24421536 未加载
评论 #24422910 未加载
评论 #24423750 未加载
评论 #24424117 未加载
gravypod超过 4 年前
Super cool to see these sorts of tools. They&#x27;re great for learning the kube API.<p>For production-y things however, some meta-config language that allows deterministic templateing would be a huge improvement. It allows you to make sweeping&#x2F;uniform infrastructure changes from a single library or tool change.<p>Kubecfg is a good example of the basics one could implement [0] although it&#x27;s examples aren&#x27;t as fully fledged and organized as they could be.<p>[0] - <a href="https:&#x2F;&#x2F;github.com&#x2F;bitnami&#x2F;kubecfg&#x2F;blob&#x2F;master&#x2F;examples&#x2F;guestbook.jsonnet" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bitnami&#x2F;kubecfg&#x2F;blob&#x2F;master&#x2F;examples&#x2F;gues...</a>
评论 #24420569 未加载
评论 #24420224 未加载
评论 #24420415 未加载
1ba9115454超过 4 年前
We&#x27;re using Pulumi <a href="https:&#x2F;&#x2F;www.pulumi.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.pulumi.com&#x2F;</a> to do our K8 configuration.<p>We can use TypeScript interfaces (which give us nice ide code completion) to define our yaml.<p>we can then create functions where we would normally duplicate Yaml. Really nice. <a href="https:&#x2F;&#x2F;www.pulumi.com&#x2F;kubernetes&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.pulumi.com&#x2F;kubernetes&#x2F;</a>
评论 #24421422 未加载
评论 #24421314 未加载
评论 #24427395 未加载
评论 #24426721 未加载
paulstovell超过 4 年前
We built this internally to test that the UI we built for Kubernetes deployments was producing the expected YAML. Thought it would be useful to share.
评论 #24420937 未加载
评论 #24420351 未加载
评论 #24423711 未加载
1f60c超过 4 年前
I don’t know how to feel about Kubernetes configuration apparently being so complicated that you need a generator for it, instead of just having the docs and your IDE open in split screen like with Docker Compose.<p>That said, this still looks cool. I just hope we won’t need a Kubernetes configuration generator generator anytime soon.
评论 #24420756 未加载
评论 #24426920 未加载
评论 #24422924 未加载
评论 #24425143 未加载
x87678r超过 4 年前
Would be nice to have a linter or something that you know is best practice. Eg if you check your yaml and its more complex than it could be.
评论 #24423654 未加载
elcritch超过 4 年前
That looks super handy! It seems like it&#x27;d be possible to &quot;port&quot; to VSCode. Some other comments mention autocomplete in VSCode, but it&#x27;d be nifty to run something like this directly in the VSCode UI.
Hamish156超过 4 年前
We built a similar thing and used in our graphical k8s designer : <a href="https:&#x2F;&#x2F;k8od.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;k8od.io&#x2F;</a>.
Niksko超过 4 年前
Ooooh nice! When I saw the title I was hoping this is what it would be. I&#x27;d dreamed of building something like this, but never had the time or the buy in.<p>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.
burgerquizz超过 4 年前
This is awesome. It is so easy to make mistakes when configuring your k8s services
emaildanwilson超过 4 年前
Awesome work for the deployment resource! Now do this for all the other native k8s types and popular custom resources. :)
laurensr超过 4 年前
It would be nice if the tool could &quot;import&quot; an existing YAML and show the resulting configuration in the GUI.
评论 #24550673 未加载
Schatel超过 4 年前
Awesome! Was waiting for someone to build it :-)
rglover超过 4 年前
This is great, thank you!
Ciantic超过 4 年前
Looks very useful. In my opinion the configuration format should have been built like this from the get go.<p>Clear schema (like TypeScript interfaces or something similar) which allows generating an UI.
评论 #24420186 未加载