In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to use Helm management tools, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
A brief introduction to Helm
Helm:
Chart: a helm package
Repository: Charts repository, https/http server
Release: an instance of a specific chart deployed on the target cluster
Chart-> Config-> Release
Helm: client. Manage local Chart repository, manage Chart, interact with Tiller server, send Chart, instance installation, query, uninstall, etc.
Tiller: server side, receives Chart and Config sent by helm, and merges to form Release
Second, deploy Helm
1 download helm
Wget https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-linux-amd64.tar.gz
2 decompression
Tar xf helm-v2.13.1-linux-amd64.tar.gz
3 install helm
Cd linux-amd64/mv helm / usr/bin/# helm versionClient: & version.Version {SemVer: "v2.13.1", GitCommit: "618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState: "clean"} Error: could not find tiller
4 install tiller
Deployment of tiller requires rbac authorization and clusterrolebinding binding at the cluster level for serious clusters with rbac enabled
# cat tiller-rbac.yaml apiVersion: v1kind: ServiceAccountmetadata: name: tiller namespace: kube-system---apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRoleBindingmetadata: name: tillerroleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-adminsubjects:-kind: ServiceAccount name: tiller namespace: kube-systemkubectl apply-f tiller-rbac.yaml if you want to deploy this space under a specific name, please refer to the official website https://github.com/helm/helm/ Blob/master/docs/rbac.md View tiller# kubectl get serviceaccount-n kube-system | grep tillertiller 1 4m25s
5 initialize tiller
Helm init-service-account tiller-history-max 200Creating / root/.helm Creating / root/.helm/repository Creating / root/.helm/repository/cache Creating / root/.helm/repository/local Creating / root/.helm/plugins Creating / root/.helm/starters Creating / root/.helm/cache/archive Creating / root/.helm/repository/repositories.yaml Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com Adding local repo with URL: http://127.0.0. 1:8879/charts $HELM_HOME has been configured at / root/.helm.Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.Please note: by default Tiller is deployed with an insecure 'allow unauthenticated users' policy.To prevent this, run `helm init` with the-- tiller-tls-verify flag.For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installationHappy Helming! Download proxyexport HTTPS_PROXY=' http://www.ik8s.io:10080' can be pre-set if the prompt fails and the connection https://ip:6443 times out, you can install it again by setting the environment variable export NO_PROXY=' node ip/16, loop address / 16'
6 View tiller
# kubectl get pod-n kube-system | grep tillertiller-deploy-876ff889-jjfn9 1 Running 0 4m29s# helm versionClient: & version.Version {SemVer: "v2.13.1", GitCommit: "618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState: "clean"} Server: & version.Version {SemVer: "v2.13.1", GitCommit: "618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState: "clean"}
7 helm chart official available warehouse
1) helm.sh2) hub.kubeapps.com
8 upgrade warehouse
Helm repo update
9 basic use of helm
1) View a chart# helm search jenkinsNAME CHART VERSION APP VERSION DESCRIPTION stable/jenkins 1.1.16 lts Open source continuous integration server. It supports mu...2) View chart details helm inspect stable/jenkins3) install an application helm install-- name memcached stable/memcached4) uninstall an application helm delete memcached 5) View Application list helm list6) get charthelm get/fatch stable/jenkins7) History Management helm history memcached8) create charthelm create.. 9) package helm package.. 10) Roll back helm rollback. 11) View helm version helm version12) View status helm status. Get it through helm-- help
10 helm home directory
The home directory mainly looks at the chart that we have used.
/ root/.helm/ Thank you for reading this article carefully. I hope the article "how to use Helm Management tools" shared by the editor will be helpful to you. At the same time, I also hope you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.