# helm-chart **Repository Path**: genCode/helm-chart ## Basic Information - **Project Name**: helm-chart - **Description**: helm-chart - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-10-29 - **Last Updated**: 2024-08-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 如何使用git仓库作为Helm的chart仓库 ## 1、创建git仓库 ## 2、下载git仓库到本地 ```powershell git clone https://gitee.com/genCode/helm-chart.git cd helm-chart ``` ### 3、创建chart目录 ```powershell # 在终端执行 source <(helm completion bash),启动helm命令自动补全功能 helm create nginx ``` ### 4、打包chart包 ```powershell helm package nginx helm repo index --url https://gencode.gitee.io/helm-chart . ``` ### 5、push到git仓库 ```powershell git add . git commit -m "创建nginx的chart包" git push origin master ``` ### 6、设置git上的helm-chart仓库的Pages(这里使用的是gitee,在服务--> Gitee Pages开启) ![image](images/pages.png) ### 7、本地添加自己的chart仓库 ```shell helm repo add myrepo https://gencode.gitee.io/helm-chart helm repo update ```