代码拉取完成,页面将自动刷新
$ helm create hello-chart
修改hello-chart/Chart.yaml
修改hello-chart/values.yaml
校验Chart.yaml
$ helm lint
$ helm package hello-chart --debug
$ helm repo index --url https://piaohua.github.io/helm-charts/ --merge index.yaml .
$ helm repo update
$ helm search list
$ 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。