一、安装helm

请看文章:​​centos7环境 的 k8s安装helm 3.7.1​

 

二、使用helm

1、使用 chart 部署一个应用 weave

 查找 chart

helm search repo weave

helm 使用方法说明_安装包

#查看 chrt 信息

helm show chart stable/weave-scope

helm 使用方法说明_安装包_02

 

安装包

helm install  myweave-ui  stable/weave-scope

#查看发布状态

helm list

helm 使用方法说明_centos_03

helm status myweave-ui

helm 使用方法说明_软件编程_04

 

 安装已经成功了。我们可以查看k8s里的pods,deploy,svc等信息,都可以找到相关信息。

helm 使用方法说明_安装包_05

 

 若需要外部能访问,则需要将svc改为NodePort类型。

kubectl edit svc myweave-ui-weave-scope

helm 使用方法说明_安装包_06

 

 

 

 

 

作者:沐雪