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)06/01 Report--
This article shows you how to use Helm in Kubernates. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Helm is a package management tool on K8s. The premise is that the k8s cluster and Helm have been installed.
[root@master helm-mjduan] # helm create mychart [root@master helm-mjduan] # find mychart/mychart/mychart/Chart.yamlmychart/templatesmychart/templates/ingress.yamlmychart/templates/deployment.yamlmychart/templates/service.yamlmychart/templates/NOTES.txtmychart/templates/_helpers.tplmychart/chartsmychart/values.yamlmychart/.helmignore
Generally, when deploying applications on K8s, you need to configure deployment and service in yaml. List-1,mychart/templates/deployment.yaml is the configuration of deployment and mychart/templates/service.yaml is the configuration of service. These two files only set the format, and the values are in mychart/values.yaml. Helm create creates the chart of nginx by default, and we need to modify what we need according to our own situation.
In List-2, mychart/Chary.yaml is the version and name of the application.
List-2
[root@master helm-mjduan] # more mychart/Chart.yaml apiVersion: v1appVersion: "1.0" description: A Helm chart for Kubernetesname: mychartversion: 0.1.0
As shown in List-1, we separate the configuration template from the value. The lint command of helm is used to check whether the template configuration depends on the value correctly, as shown in List-3. You can use helm lint-h to view the help documentation.
List-3
[root@master helm-mjduan] # helm lint mychart/== > Linting mychart/ [INFO] Chart.yaml: icon is recommended1 chart (s) linted, no failures
You can view the help documentation from the command line.
Package the above chart with the package command
Install command to deploy the application
The list command can view the deployed chart
Status can view status
The upgrade command can upgrade the deployed application version without stopping the service, and press the release version of chart
Rollback and upgrade, in turn, downgrade the version
The above is how to use Helm in Kubernates. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.