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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: konfd – Manage Kubernetes secrets and configmaps with Go templates

115 点作者 kelseyhightower超过 8 年前

5 条评论

gabrtv超过 8 年前
More great stuff from Kelsey...<p>My tldr; konfd writes out k8s configmaps based on other k8s resources like secrets, configmaps, etc. Really useful for writing out complete config files into a pod namespace without relying on external config backends.<p>Question: While looping on a syncInterval is certainly clean and understandable, it feels suboptimal when all the templates sources are themselves watchable with a k8s client. Benefits of switching to a watch model:<p>1. Speed: It&#x27;d be nice to have the template rendering fire immediately after a source secret changed versus waiting for syncInterval.<p>2. Resource Utilization: Switching from syncInterval to a watch should save significant cycles by avoiding reprocessing templates when config hasn&#x27;t changed.
评论 #13106289 未加载
otterley超过 8 年前
Kelsey, I (and others) would kindly appreciate it if you&#x27;d stop calling anything in Kubernetes as it exists today a &quot;secret&quot; and writing new code to further encourage its use. People should be aware in no uncertain terms that the &quot;secrets&quot; store in etcd is totally unencrypted and insecure.<p>If you&#x27;d like to find a place to help, I&#x27;d suggest focusing your efforts on connecting Kubernetes to Hashicorp Vault, which is truly secure, and deprecating the old unencrypted etcd-backed implementation.
评论 #13107572 未加载
评论 #13107903 未加载
评论 #13107410 未加载
评论 #13107199 未加载
fcantournet超过 8 年前
Hi kelsey, this is pretty nice ! Is there any way to bribe you into slowing down on the awesome sauce delivery pipeline so people can catch up !? asking for a friend.<p>If you find the time can you elaborate on why you elected to use ConfigMaps for the templates too instead of building a 3rd party ressource ? This way you wouldn&#x27;t have to use annotations and the definition might be a little more terse (or not)<p>Is there something about configmaps that make implementation easier ? or provides additional behavior wrt to pod lifecycle or something like that ?
评论 #13109617 未加载
kozikow超过 8 年前
I propose an alternative to templates: Use go objects to define your config. Better dynamicity, readability and typesafety. See my post <a href="https:&#x2F;&#x2F;kozikow.com&#x2F;2016&#x2F;09&#x2F;02&#x2F;using-go-to-autogenerate-kubernetes-configs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kozikow.com&#x2F;2016&#x2F;09&#x2F;02&#x2F;using-go-to-autogenerate-kube...</a> .
tonyhb超过 8 年前
Aren&#x27;t secrets stored unecrypted in kube? I&#x27;d hesitate to call them secrets, though config looks good.