helm-版本查找显示不是最新版本的解决方法

helm-查找版本问题

今天想升级一下prometheus,发现查找出来的版本比较低,并不是最新版本:
client@local:~$ helm search prometheus
NAME                     	VERSION	DESCRIPTION                                       
stable/prometheus        	3.1.0  	Prometheus is a monitoring system and time seri...
stable/weave-cloud       	0.1.0  	Weave Cloud Agents                                
                         	       	                                                  
                         	       	Weave Cloud is a add-on to ...                    
stable/kube-state-metrics	0.1.0  	Install kube-state-metrics to generate and expo...
检查helm版本:
client@local:~$ helm version --tiller-namespace=default
Client: &version.Version{SemVer:"v2.5.0", GitCommit:"012cb0ac1a1b2f888144ef5a67b8dab6c2d45be6", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.5.0", GitCommit:"012cb0ac1a1b2f888144ef5a67b8dab6c2d45be6", GitTreeState:"clean"}
所以重新初始化一下客户端:
client@local:~$ helm init --client-only --tiller-namespace=default
Creating /home/client/.helm 
Creating /home/client/.helm/repository 
Creating /home/client/.helm/repository/cache 
Creating /home/client/.helm/repository/local 
Creating /home/client/.helm/plugins 
Creating /home/client/.helm/starters 
Creating /home/client/.helm/cache/archive 
Creating /home/client/.helm/repository/repositories.yaml 
$HELM_HOME has been configured at /home/zyh/.helm.
Not installing tiller due to 'client-only' flag having been set
Happy Helming!
再次查找,版本已经并为最新版本了
client@local:~$ helm search prometheus
NAME                                 	VERSION	DESCRIPTION                                       
stable/prometheus                    	6.7.1  	Prometheus is a monitoring system and time seri...
stable/prometheus-cloudwatch-exporter	0.1.2  	A Helm chart for prometheus cloudwatch-exporter   
stable/prometheus-mysql-exporter     	0.1.0  	A Helm chart for prometheus mysql exporter with...
stable/prometheus-node-exporter      	0.2.0  	A Helm chart for prometheus node-exporter         
stable/prometheus-postgres-exporter  	0.1.3  	A Helm chart for prometheus postgres-exporter     
stable/prometheus-pushgateway        	0.1.2  	A Helm chart for prometheus pushgateway           
stable/prometheus-rabbitmq-exporter  	0.1.3  	Rabbitmq metrics exporter for prometheus          
stable/prometheus-redis-exporter     	0.1.2  	Prometheus exporter for Redis metrics             
stable/prometheus-to-sd              	0.1.0  	Scrape metrics stored in prometheus format and ...
stable/elasticsearch-exporter        	0.1.4  	Elasticsearch stats exporter for Prometheus       
stable/stackdriver-exporter          	0.0.4  	Stackdriver exporter for Prometheus               
stable/weave-cloud                   	0.2.2  	Weave Cloud is a add-on to Kubernetes which pro...
stable/kube-state-metrics            	0.7.1  	Install kube-state-metrics to generate and expo...
stable/mariadb                       	4.2.2  	Fast, reliable, scalable, and easy to use open-...
下载chart包:
client@local:~$ helm fetch stable/prometheus
client@local:~$ ls -l
总用量 20
-rw-r-xr-x 1 zyh zyh 17944  6月  6 16:17 prometheus-6.7.1.tgz


你可能感兴趣的:(kubernetes,helm)