helm

作者: xyz098 | 来源:发表于2019-08-21 20:05 被阅读0次

概念

helm-chart guide helm-k8s包管理

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中仓库包

相关文章

网友评论

      本文标题:helm

      本文链接:https://www.haomeiwen.com/subject/prxwsctx.html