k8s -helm

Helm has two important concepts: chart and release.

Chart is a collection of information that creates an application, including configuration templates, parameter definitions, dependencies, documentation, and more for various Kubernetes objects. Chart is the self-contained logical unit of the application deployment. Think of the chart as a software installation package in apt, yum.

Release is a running instance of chart that represents a running application. When chart is installed into the Kubernetes cluster, a release is generated. The chart can be installed to the same cluster multiple times, and each installation is a release.

Helm is a package management tool, and the package here refers to the chart. Helm can:

Create a new chart from zero.

Interact with the repository where the chart is stored, pull, save, and update the chart.

Install and uninstall the release in the Kubernetes cluster.

Update, rollback, and test release.

Helm consists of two components: the Helm client and the Tiller server.
在这里插入图片描述

The Helm client is a command-line tool used by end users who can:

Develop a chart locally.

Manage chart warehouse.

Interact with the Tiller server.

Install the chart on the remote Kubernetes cluster.

View the release information.

Upgrade or uninstall an existing release.

The Tiller server runs in a Kubernetes cluster, which processes Helm client requests and interacts with the Kubernetes API Server. The Tiller server is responsible for:

Listen for requests from Helm clients.

Build a release via chart.

Install chart in Kubernetes and track the status of the release.

Upgrade or uninstall an existing release through the API Server.

To put it simply: the Helm client is responsible for managing the chart; the Tiller server is responsible for managing the release.

deploy helm client:
在这里插入图片描述

deploy Tiller server
在这里插入图片描述

Tiller itself runs as a containerized application in Kubernetes Cluster:
You can see Tiller’s Service, Deployment, and Pod.

在这里插入图片描述
use Helm

helm search
在这里插入图片描述
helm manages chart as apt and yum manages software package

stable is offical repo ,local is local repo

在这里插入图片描述

helm install stable/mysql

  1. description of this release ,NAME,STATUS
  2. the release includes Service,Deployment,Secret,PersistentVolumeClaim
  3. how to use release

chart is composed of a series of files:

在这里插入图片描述

chart.yaml:describe chart abstart info
value.yaml:to set parameter for templates
templates:standard yaml file will be combined with value.yaml

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值