声明式Helm Chart管理工具
English | [简体中文]
Helmfile 是一个声明式Helm Chart管理工具
Helmfile 项目已经从原仓库 roboll/helmfile 转移到了 helmfile/helmfile。有关更多信息,请参见 roboll/helmfile#1824
方式1: 二进制安装
下载 releases
方式2: 包管理工具
pacman -S helmfilezypper in helmfilescoop install helmfilebrew install helmfile方式3: 容器
安装后请运行一次
helmfile init。 检查helm-diff 等插件安装正确。
方式4: 源码安装
依赖: Go
go install github.com/helmfile/helmfile@latest
让我们从最简单的 helmfile 开始,逐渐改进它以适应您的用例!
使用脚手架命令生成具有最佳实践目录结构的项目:
helmfile create my-project && cd my-project
或者手动创建 helmfile.yaml。假设表示您 helm releases 的期望状态的 helmfile.yaml 看起来像这样:
repositories:
- name: prometheus-community
url: https://prometheus-community.github.io/helm-charts
releases:
- name: prom-norbac-ubuntu
namespace: prometheus
chart: prometheus-community/prometheus
set:
- name: rbac.create
value: false
通过运行来同步您的Kubernetes集群状态到期望状态:
helmfile apply
恭喜!您现在已经在集群内部运行了第一个Prometheus部署。
欢迎贡献! 让我们一起使helmfile变得更好:贡献指南
Helmfile 已经被许多用户在生产环境中使用:
更多用户请参见: Users
$ claude mcp add helmfile \
-- python -m otcore.mcp_server <graph>