輕松完爆Helm公共倉庫



有時候 網絡導致添加倉庫失敗,可查看 helm官方倉庫

一、Helm倉庫查看

$ helm repo list
Error: no repositories to show
# 首次安裝helm3 是沒有指定默認倉庫的。需要手動瘋狂添加倉庫才可以獲取程序包

二、Helm倉庫添加

$ helm repo add stable http://mirror.azure.cn/kubernetes/charts
$ helm repo add aliyun  https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
$ helm repo add jetstack https://charts.jetstack.io
$ helm repo update  # 更新倉庫

三、Helm倉庫刪除

如果有一天覺得手癢,可以使用如下命令刪除helm倉庫。不用擔心什么可怕后果,更不要大聲尖叫。這里並不是真實刪除倉庫,只是刪除指向倉庫的鏈接而已。如果后悔了,大不了再使用上面的命令添加回來。

$ helm repo remove stable
$ helm repo remove aliyun
$ helm repo remove jetstack

四、Helm查看chart

添加完上面的helm倉庫后,就可以額愉快的查找你深愛的程序包(chart)了。

# helm search repo chart_name,比如想查找 nginx 的 chart,使用如下命令:

$ helm search repo nginx
NAME                            CHART VERSION   APP VERSION     DESCRIPTION
aliyun/nginx-ingress            0.9.5           0.10.2          An nginx Ingress controller that uses ConfigMap...
aliyun/nginx-lego               0.3.1                           Chart for nginx-ingress-controller and kube-lego
stable/nginx-ingress            1.41.3          v0.34.1         DEPRECATED! An nginx Ingress controller that us...
stable/nginx-ldapauth-proxy     0.1.6           1.13.5          DEPRECATED - nginx proxy with ldapauth
stable/nginx-lego               0.3.1                           Chart for nginx-ingress-controller and kube-lego
aliyun/gcloud-endpoints         0.1.0                           Develop, deploy, protect and monitor your APIs ...
stable/gcloud-endpoints         0.1.2           1               DEPRECATED Develop, deploy, protect and monitor...


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM