1 Star 0 Fork 0

piao / helm-charts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 902 Bytes
一键复制 编辑 原始数据 按行查看 历史
piaohua 提交于 2020-07-26 18:43 . update README.md

helm-charts

hello-chart

  1. 创建hello-chart
$ helm create hello-chart
  1. 修改hello-chart/Chart.yaml

  2. 修改hello-chart/values.yaml

  3. 校验Chart.yaml

$ helm lint
  1. 打包
$ helm package hello-chart --debug
  1. 更新index.yaml
$ helm repo index --url https://piaohua.github.io/helm-charts/ --merge index.yaml .
  1. 提交*.tgz & index.yaml
  2. 更新repo
$ helm repo update
$ helm search list
  1. 部署hello-chart
$ helm install piaohua/hello-chart --generate-name --namespace hello

$ export POD_NAME=$(kubectl get pods --namespace hello -l "app.kubernetes.io/name=hello-chart,app.kubernetes.io/instance=hello-chart-1595757801" -o jsonpath="{.items[0].metadata.name}")

$ kubectl --namespace hello port-forward $POD_NAME 8080:80

$ kubectl get deployment,rs,rc,pod -n hello

$ curl -X GET http://127.0.0.1:8080
1
https://gitee.com/piao/helm-charts.git
git@gitee.com:piao/helm-charts.git
piao
helm-charts
helm-charts
master

搜索帮助