# helm-charts **Repository Path**: piao/helm-charts ## Basic Information - **Project Name**: helm-charts - **Description**: 基于github搭建helm repository - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: https://piao.gitee.io/post/tool/helm_github/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-01 - **Last Updated**: 2022-08-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: helm ## README # helm-charts ## hello-chart 1. 创建hello-chart ```bash $ helm create hello-chart ``` 2. 修改hello-chart/Chart.yaml 3. 修改hello-chart/values.yaml 4. 校验Chart.yaml ```bash $ helm lint ``` 5. 打包 ```bash $ helm package hello-chart --debug ``` 6. 更新index.yaml ```bash $ helm repo index --url https://piaohua.github.io/helm-charts/ --merge index.yaml . ``` 7. 提交*.tgz & index.yaml 8. 更新repo ```bash $ helm repo update $ helm search list ``` 9. 部署hello-chart ```bash $ 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 ```