Chapter V helm relaxed after blasting release

table of Contents

1 release Introduction

View 2 release

3 release Installation

4 release update

    4.1 command line based update release

    4.2 update release on file

    View the new value after 4.3 update release

5 release version

6 release rollback

7 release Uninstall


1 release Introduction

        In the above chapters we have introduced two terms helm of: chart and release. If the chart can be likened to the source program, then release it can be seen as a process program is running.

        chart is directly perceived by the user object (which is the form of compressed .tgz format); it is understood that the release more abstract, it is specific to a logical concept of helm for a set of resources identified in operation in k8s . With the release, helm in operation k8s, no longer have to individually manage resources, and may be a group of related resources as a whole to operate, such as deleting or upgrade.


View 2 release

# helm ls

clipboard1.png


3 release Installation

        Online install the specified chart, such as nginx-ingress.

# helm search repo nginx-ingress

# helm install mynginx-ingress google/nginx-ingress

clipboard2.png


4 release update

        If you want to modify the configuration release runtime, you can use the -f option --set or modified.

4.1 command line based update release

## mynginx-ingress is to release the name created above; google / nginx-ingress is online chart name

# helm upgrade --set controller.hostNetwork=true \

mynginx-ingress google/nginx-ingress

clipboard3.png4.2 update release on file

        If you want to update the file-based release, you first need to download to the local chart, and then manually modify the chart of values.yaml file.

## download chart

# helm pull google/nginx-ingress

## decompress chart

# tar -zxvf nginx-ingress-1.26.1.tgz

## values.yaml modify content. Such as changing the value true hostNetwork

# sed -i 's/hostNetwork: false/hostNetwork: true/g' nginx-ingress/values.yaml

## for the file using the -f option to update release

# helm upgrade mynginx-ingress nginx-ingress -f nginx-ingress/values.yaml

clipboard4.png

View the new value after 4.3 update release

# helm get values mynginx-ingress

clipboard5.png


5 release version

## The figure is mynginx-ingress the release of each version of history. REVISION 5 which is the latest version.

# helm history mynginx-ingress

clipboard6.png


6 release rollback

# helm rollback mynginx-ingress 4

clipboard7.png


spacer.gif7 release Uninstall

# helm uninstall mynginx-ingress

clipboard8.png

Guess you like

Origin blog.51cto.com/14625168/2455495