Khi deploy 1 application trên k8s chắc hẳn anh em devops sẽ phải sài đến helm
Nếu anh em đang băn khoan việc lưu helm package ở đây?
thì chúng ta cùng tim hiểu
Mình lưu một số lệnh với helm package.
helm package ./nimtechnology -d .
helm repo index ./
1) push helm package on github
Đây là 1 repo vị dụ.
https://github.com/mrnim94/kubernetes-manifest
nếu bạn add helm repo trên argocd thì sử dụng link này:
https://raw.githubusercontent.com/mrnim94/kubernetes-manifest/master/
2) push helm package on Bitbucket
Reference links:
https://community.atlassian.com/t5/Bitbucket-questions/Helm-repository/qaq-p/1022537
Repo demo:
https://bitbucket.org/nimtechnology/helm-chart
command:
helm repo add {REPONAME} https://api.bitbucket.org/2.0/repositories/{USER|ORGANISATION}/{REPOSITORY}/src/{Banch}/{path to direct the index.yaml} --username {USER} --password {APP-PASSWORD}
helm repo add mdce-nimtechnology-argo https://api.bitbucket.org/2.0/repositories/nim/argo/src/master/meta-structure/helm-charts/ --username nimtechnology --password ATBBCms96PrjcD9XXXXXXXXXfAc0257C473
Vậy làm sao để lấy được app password




Bạn lấy user name ở đây như dưới hình:

Notice:
Bạn cần chú ý ở cuối đường link “/”
vì: https://api.bitbucket.org/2.0/repositories/nim/argo/src/master/meta-structure/helm-charts/
khác https://api.bitbucket.org/2.0/repositories/nim/argo/src/master/meta-structure/helm-charts
3) push helm package on Harbor.



và link helm chart sẽ như sau:
https://docker.nimtechnology.com/chartrepo/nim
Nếu bạn muốn chạy command line thì chắc tham khảo cách dưới
https://github.com/goharbor/harbor/issues/14249