概念
helm是包管理工具,用来管理和部署kubernetes
理解:通过values.yaml文件配置的值渲染出ks8所需要的deployment.yaml、ingress.yaml、service.yaml
$ tree crm-demo-web
crm-demo-web
├── Chart.yaml // 包的基本描述文件
├── templates
│ ├── config_map.yaml // 各类模板文件
│ ├── deployment.yaml
│ ├── ingress.yaml
│ ├── NOTES.txt
│ ├── service.yaml
└── values.yaml // 设定模板中值
操作
helm install --dry-run --debug ./ # 对模板和配置进行测试
helm repo update # 更新仓库
helm push -v `date +%Y%m%d.%H%M%S` crm-demo-web default # 推送到helm仓库
helm fetch --untar default/crm-demo-web # 获取helm中仓库包










网友评论