Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to manage and install chart

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to manage and install chart. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Install chart

When we feel ready, we can install chart,Helm to support four installation methods:

Install chart in the repository, for example: helm install stable/nginx

Install through the tar package, for example: helm install. / nginx-1.2.3.tgz

Install from the chart local directory, for example: helm install. / nginx

Install via URL, for example: helm install https://example.com/charts/nginx-1.2.3.tgz

Here we use the local directory to install:

When chart is deployed to a Kubernetes cluster, it can be tested more comprehensively.

Add chart to the warehouse

After chart passes the test, it can be added to the repository and used by the rest of the team. Any HTTP Server can be used as a chart repository. Here's how to build a warehouse on k8s-node1192.168.56.106.

Start a httpd container on k8s-node1.

Execute helm repo index to generate the index file for the warehouse.

Currently, there is only one chart, mychart.

Upload mychart-0.1.0.tgz and index.yaml to the / var/www/charts directory of k8s-node1.

The warehouse is named newrepo,Helm and index.yaml is downloaded from the warehouse.

Now you can repo search to mychart.

If a new chart is added to the warehouse later, you need to update the local index with helm repo update.

This operation is equivalent to the apt-get update of Ubutun.

We learned about the Kubernetes package manager Helm.

Helm enables us to install, deploy, upgrade, and remove containerized applications in the same way that apt manages deb packages.

Helm consists of a client and a Tiller server. The client is responsible for managing chart and the server is responsible for managing release.

Chart is the application packaging format of Helm, which consists of a set of files and directories. The most important one is the template, which defines the configuration information of all kinds of Kubernetes resources, and Helm instantiates the template through values.yaml during deployment.

Helm allows users to develop their own chart and provides users with debugging tools. Users can build their own chart repositories and share chart with the team.

Helm helps users run and manage micro-service architecture applications efficiently on Kubernetes, and Helm is very important.

On how to manage and install chart to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report