这是Ciliverse的Helm Charts仓库,包含了用于Kubernetes部署的各种应用chart。
# 添加Ciliverse Charts仓库
helm repo add ciliverse https://charts.cillian.website
# 更新Helm仓库
helm repo update
# 搜索可用的Charts
helm search repo ciliverse
# 安装cilikube
helm install cilikube ciliverse/cilikube --namespace cilikube --create-namespace
# 安装monitor-operator
helm install monitor-operator ciliverse/monitor-operator --namespace monitoring --create-namespace- cilikube - Cilikube前后端应用部署
- monitor-operator - Kubernetes监控栈管理
本仓库提供了多种自动化工具来简化chart管理:
# 自动打包所有charts并更新仓库索引
./auto-update-charts.sh# 查看所有可用命令
make help
# 自动更新所有内容
make update
# 只打包charts
make package
# 测试charts语法
make test
# 清理生成的文件
make clean
# 本地预览服务器
make serve安装Git hooks实现真正的自动化:
# 安装Git hooks
./install-git-hooks.sh安装后,当你修改Chart.yaml文件并提交时,会自动:
- 打包所有charts
- 更新仓库索引
- 更新HTML页面
- 将更新的文件添加到提交中
-
手动创建:
helm create ciliverse/your-chart-name
-
使用Makefile:
make new-chart
-
编辑Chart.yaml: 修改chart的基本信息,包括版本、描述等
-
自动更新:
make update # 或者 ./auto-update-charts.sh
.
├── ciliverse/
│ ├── charts/ # 生成的chart包和仓库文件
│ │ ├── *.tgz # chart包文件
│ │ ├── index.yaml # 仓库索引
│ │ └── index.html # 仓库主页
│ ├── cilikube/ # cilikube chart源码
│ └── monitor-operator/ # monitor-operator chart源码
├── auto-update-charts.sh # 自动更新脚本
├── update-charts.sh # 完整更新脚本
├── install-git-hooks.sh # Git hooks安装脚本
├── Makefile # Make命令
└── README.md # 本文件
- 创建新的chart目录
- 编辑Chart.yaml和templates
- 运行
make test测试语法 - 运行
make update更新仓库 - 提交代码(如果安装了Git hooks会自动更新)
- 修改chart源码
- 更新Chart.yaml中的版本号
- 运行
make update或直接提交(如果有Git hooks)
# 方法1: 使用rsync
rsync -av ciliverse/charts/ user@server:/var/www/charts/
# 方法2: 使用git部署
git add ciliverse/charts/
git commit -m "Update charts"
git push
# 方法3: 自定义部署脚本
make deploy # 需要先配置Makefile中的deploy命令- 每次修改chart后记得更新版本号
- 使用
make test确保chart语法正确 - 提交前运行
make update确保仓库是最新的 - 生产环境部署后记得测试chart安装
欢迎提交PR来改进charts或添加新的charts!
本项目采用MIT许可证。