This is the 12th day of my participation in the August Challenge

Through the practice of the previous chapters, the basic use of helm is no longer a problem, just more brush proficiency

But helm command is numerous, parameters are many, all rely on memory is certainly not good, a few months do not need not forget it

All this paper is both a review of helm commands and a structured summary of these commands

This article uses Nginx chart as an example, please replace it when using it

Information on command

Command that contains information about the helm itself

Viewing Environment Information

helm env 
Copy the code

Viewing version Information

helm version
Copy the code

Warehouse command

Commands related to warehouse operations, often used

To find the software

helm search repo nginx 
helm search hub  nginx 
Copy the code

Add a new warehouse

helm repo add bitnami https://charts.bitnami.com/bitnami
Copy the code

View a list of existing warehouses

helm repo list 
Copy the code

Update warehouse resources

helm repo update
Copy the code

Delete a repository

helm repo delete bitnami
Copy the code

Create warehouse leads

helm repo index /root/helm/repo
Copy the code

Deployment Management Commands

This section includes a series of operations, such as deploying and managing applications, and is used frequently

Deploy chart and specify the version

helm install center-nginx bitnami/nginx --version 9.41.
Copy the code

Uninstall the chart

helm uninstall center-nginx
Copy the code

Chart status View

helm status center-nginx
Copy the code

View chart list

– All namespaces in the table A

helm list -A 
Copy the code

Chart deployment history

helm history center-nginx
Copy the code

Chart update

helm upgrade --set image.tag=nginx18. center-nginx bitnami/nginx
Copy the code

Chart a rollback

helm rollback center-nginx 2
Copy the code

Chart production command

This section includes chart downloads and commands related to making chart packages

Download chart package

helm pull bitnami/nginx
Copy the code

Check chart package syntax

helm lint 
Copy the code

Render mode tests the Chart package

helm install --debug --dry-run testchart .
Copy the code

Create a chart package

helm create testchart
Copy the code

Upload chart package to private server

helm push nginx-9.41..tgz chartmuseum --debug
Copy the code

Chart information command

Chart in helm is a resource collection as well as a format. We can check relevant information before installation and use

Since the value of Readme values all in Helm Show is not high and the information displayed is too much, it will not be recorded here and will rarely be used, because there is too much content displayed, so it is better to read it on the page

View chart package information

Display chart package version, source code and other information

helm show chart bitnami/nginx
Copy the code

Release message command

The concept of release at helm is the chart that has been deployed (excluding whether K8S has been successfully deployed). Such commands are wrongly used after deployment, because the information displayed by such commands is also realized by other commands, so they are rarely used

Look at the release comment

helm get notes center-nginx
Copy the code

Look at the values changed by Release

Null if no changes have been made since install

helm get values center-nginx
Copy the code

Look at the Release hook

helm get hooks center-nginx
Copy the code

View the manifest configuration file

The manifest configuration file is the kubernetes resource configuration file with the same name

helm get manifest center-nginx
Copy the code

View all release information

It is the sum of the values of the above four commands

helm get all center-nginx
Copy the code

The plug-in command

This section lists plug-in commands and is rarely used

Installing a plug-in

helm plugin install https://github.com/chartmuseum/helm-push.git
Copy the code

The plugin list

helm plugin list
Copy the code

Unload the plugin

helm plugin pluginName
Copy the code

Update the plugin

helm plugin update pluginName
Copy the code