Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the basic commands commonly used in Helm

Shulou Source: shulou.com Published: 2022-06-01 13:29:57 10月04日 Update

This article mainly introduces the basic commands commonly used in Helm, which have a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.

Helm is a software package management tool for Kubernetes. This paper requires readers to have a certain understanding of Docker, Kubernetes and other related knowledge. This article introduces the related concepts and basic working principles of Helm, and uses some simple examples to demonstrate how to use Helm to install, upgrade, and roll back a Kubernetes application.

Imghelm management command

View version

# helm version

Add repo

# helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts#helm repo add-username admin-password password myharbor https://harbor.qing.cn/chartrepo/charts

Update repo warehouse resources

# helm repo updatecharts Management

View the currently installed charts

# helm list

Helm search hub displays all available charts.

# helm search hub redis

Using helm search repo, you can find the name of the charts in the added repository:

# helm search repo redis

Print out the details of the specified Charts

# helm show chart stable/redis

Download charts to local

# helm fetch redis

Install charts

# helm install redis stable/redis

View charts status

# helm status redis

Delete charts

# helm uninstall redis Custom charts

Create charts

# helm create helm_charts

Check the correctness of chart syntax

# helm lint myapp

Package customized chart

# helm package myapp

View the generated yaml file

# helm template myapp-1.tgz

Deploy to k8s using the default chart

Helm install myapp myapp-1.tgz

Use packages for release deployment

Helm install-- name example2 helm-chart-0.1.0.tgz-- set service.type=NodePort updates and rollback

View current chart information

# helm list

Update images

# helm upgrade myapp myapp-2.tgz

View version information

# helm history myapp

Roll back the specified version

# helm rollback myapp 1 Thank you for reading this article carefully. I hope the article "what are the common basic commands of Helm" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Articles commands information versions updates management commonly used knowledge warehouses values interests principles at the same time names charts tools documents more friends concepts Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn Xiaomi Microsoft MySQL