您的位置 首页 k8s

helm 的Chart仓库介绍

helm 的Chart仓库介绍

主流的Chart仓库概述

互联网公开Chart仓库,可以直接使用他们制作好的包:

		微软仓库:
			http://mirror.azure.cn/kubernetes/charts/

		阿里云仓库:
			https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts

添加仓库的方式:

helm repo list
查看现有的仓库信息,默认情况下是没有任何仓库地址的
helm repo add azure http://mirror.azure.cn/kubernetes/charts/ 
			此处我们将微软云的仓库添加到咱们的helm客户端仓库
	helm repo update  
			我们也可以更新仓库信息

搜索我们关心的chart:

helm search repo kafka

 

helm search repo zookeeper

拉取第三方的chart

(1)下载chart

helm pull azure/elasticsearch-exporter

(2)解压chart

tar xf elasticsearch-exporter-3.7.1.tgz

(3)查看资源的api是否正确

否则可能会导致运行失败

vim elasticsearch-exporter/templates/deployment.yaml
apiVersion: apps/v1
...

(4)部署chart

helm install baimei-es-exporter elasticsearch-exporter

(5)开启端口转发

export POD_NAME=$(kubectl get pods --namespace default -l "app=es-exporter-elasticsearch-exporter" -o jsonpath="{.items[0].metadata.name}")

kubectl port-forward ${POD_NAME} 9108:9108 --address 0.0.0.0  --namespace default

(6)测试服务是否部署成功

curl http://10.0.0.231:9108/metrics

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章