第154天学习打卡(Kubernetes 使用Helm快速部署应用, 如何自己创建Chart)

使用helm快速部署应用

第一步 使用命令搜索应用

 helm search repo 名称 (weave)

第二步 根据搜索内容选择安装

 helm install 安装之后的名称 搜索应用的名称
 
 查看安装之后状态
 helm list
 helm status 安装之后名称
 
 [root@master linux-amd64]# helm search repo weave
 NAME             CHART VERSION APP VERSION DESCRIPTION                                      
 stable/weave-cloud 0.3.9       1.4.0     DEPRECATED - Weave Cloud is a add-on to Kuberne...
 stable/weave-scope 1.1.12       1.12.0     DEPRECATED - A Helm chart for the Weave Scope c...
 [root@master linux-amd64]# helm install ui3 stable/weave-scope
 WARNING: This chart is deprecated
 W0611 16:13:45.383789   15586 warnings.go:70] rbac.authorization.k8s.io/v1beta1 ClusterRole is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRole
 W0611 16:13:45.385260   15586 warnings.go:70] rbac.authorization.k8s.io/v1beta1 ClusterRoleBinding is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRoleBinding
 W0611 16:13:45.409268   15586 warnings.go:70] rbac.authorization.k8s.io/v1beta1 ClusterRole is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRole
 W0611 16:13:45.413066   15586 warnings.go:70] rbac.authorization.k8s.io/v1beta1 ClusterRoleBinding is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRoleBinding
 NAME: ui3
 LAST DEPLOYED: Fri Jun 11 16:13:45 2021
 NAMESPACE: default
 STATUS: deployed
 REVISION: 1
 NOTES:
 You should now be able to access the Scope frontend in your web browser, by
 using kubectl port-forward:
 
 kubectl -n default port-forward $(kubectl -n default get endpoints \
 ui3-weave-scope -o jsonpath=\'{.subsets[0].addresses[0].targetRef.name}\') 8080:4040
 
 then browsing to :8080/.
 For more details on using Weave Scope, see the Weave Scope documentation:
 
 https://www.weave.works/docs/scope/latest/introducing/
 
 [root@master linux-amd64]# helm repo list
 NAME URL                                      
 stable
 [root@master linux-amd64]# helm list
 NAME NAMESPACE REVISION UPDATED                               STATUS CHART             APP VERSION
 ui3 default 1       2021-06-11 15:47:29.338897612 +0800 CST deployed weave-scope-1.1.12 1.12.0
 [root@master linux-amd64]# helm status ui3 #查看状态信息
 NAME: ui3
 LAST DEPLOYED: Fri Jun 11 16:13:45 2021
 NAMESPACE: default
 STATUS: deployed
 REVISION: 1
 NOTES:
 You should now be able to access the Scope frontend in your web browser, by
 using kubectl port-forward:
 
 kubectl -n default port-forward $(kubectl -n default get endpoints \
 ui3-weave-scope -o jsonpath=\'{.subsets[0].addresses[0].targetRef.name}\') 8080:4040
 
 then browsing to :8080/.
 For more details on using Weave Scope, see the Weave Scope documentation:
 
 https://www.weave.works/docs/scope/latest/introducing/
 [root@master linux-amd64]# kubectl get svc
 NAME             TYPE       CLUSTER-IP       EXTERNAL-IP   PORT(S)       AGE
 kubernetes       ClusterIP   10.96.0.1       <none>        443/TCP       5d19h
 ui3-weave-scope   ClusterIP   10.103.97.141   <none>        80/TCP         7m31s
 web               NodePort    10.111.111.127   <none>        80:32079/TCP   19h
 
 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzzjdp.html