Đầu tiền bạn cần tạo 1 repo:
Thực hiện các lệnh bên dưới:
git clone https://github.com/mrnim94/openvscode-server-helm.git
I’d like to avoid bot crawling on my repository, so I add the following robots.txt file:
echo -e “User-Agent: *\nDisallow: /” > robots.txt
Tạo helm chart:
mkdir ./helm-chart
helm create helm-chart/openvscode-server
helm lint helm-chart/*
Sau đó bạn chỉnh sửa template và recheck template
helm template ./helm-chart/openvscode-server/
Khi template đã ngon thì thực hiện tạo package
helm package ./helm-chart/*
helm repo index --url https://mrnim94.github.io/openvscode-server-helm/ .
cat index.yaml apiVersion: v1 entries: openvscode-server: - apiVersion: v2 appVersion: v1.74.2 created: "2023-01-08T00:40:06.05580388+07:00" description: A Helm chart for Kubernetes digest: a22252b706f98793a76b01985287897cba8d2409ba622ef3e951447cf4762b46 name: openvscode-server type: application urls: - https://mrnim94.github.io/openvscode-server-helm/openvscode-server-0.1.0.tgz version: 0.1.0 generated: "2023-01-08T00:40:06.055129679+07:00"
git add . && git commit -m "Initial commit" && git push origin maste
r
helm repo add openvscode-server-helm https://mrnim94.github.io/openv scode-server-helm/ "openvscode-server-helm" has been added to your repositories helm search repo openvscode-server-helm NAME CHART VERSION APP VERSION DESCRIPTION openvscode-server-helm/openvscode-server 0.1.0 v1.74.2 A Helm chart for Kubernetes