Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自己动手写一个 Kubernetes YAML 模板化工具 #187

Open
cnych opened this issue Nov 9, 2020 · 2 comments
Open

自己动手写一个 Kubernetes YAML 模板化工具 #187

cnych opened this issue Nov 9, 2020 · 2 comments

Comments

@cnych
Copy link
Owner

cnych commented Nov 9, 2020

https://www.qikqiak.com/post/code-k8s-yaml-templating/

我们在使用 Kubernetes 编写资源清单文件的时候,往往会使用类似于 Helm 或者 Kustomize 这样的工具来进行模板化处理,一来是提高了资源清单的灵活性,另一方面也确实降低了我们安装复杂的 Kubernetes 应用的门槛。本文我们尝试自己使用 Golang 来实现一个 YAML 资源清单文件模板化的方案。

@qiangshui
Copy link

可以讲一讲patch操作吗?对StrategyMergePatchType、MergePatchType、ApplyPatchType这几种PatchType之间的区别不是很明白

@qiangshui
Copy link

另外,文中objectInYAML.Raw这个是否有笔误?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants