创建repository为helm-charts的git空仓库
$ git clone https://github.com/aszeta/helm-charts
新建chart 名字跟docker hub的application名保持一致
$ helm create novel
novel
│ .helmignore
│ Chart.yaml
│ list.txt
│ values.yaml
│
├─charts
└─templates
│ deployment.yaml
│ hpa.yaml
│ ingress.yaml
│ NOTES.txt
│ service.yaml
│ serviceaccount.yaml
│ _helpers.tpl
│
└─tests
test-connection.yaml
将APP 各项参数修正完毕之后,检查语法格式
$ helm lint
==> Linting .
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failed
打包成带版本的app
$ helm package novel
$ helm repo index . ##更新索引
$ git push ##推送到git仓库