Chapter IV helm relaxed after blasting chart

table of Contents

1 chart presentation

2 chart Use

    2.1 chart Search

    2.2 chart download

    2.3 chart self

    2.4 chart package

    2.5 chart upload

        2.5.1 self-built private warehouse

        2.5.2 generated or updated chart index file

        2.5.3 upload chart and index files

        2.5.4 update local chart warehouse


1 chart presentation

        kubernetes (k8s) managed object called resources (such as pod). helm as one of k8s ecological tools, more resources will be interrelated packaged into a unified whole, to k8s to run. This is packaged as a whole is called the chart. You can chart with the program source packages analogy.

        With the chart, the object of our operation is no longer a single resource, but the entity. For example, we need to have a web service load balancing capabilities, if you do not use the chart, we need to write deployment, service and ingress can allow external cluster customers. But if you use chart, directly using an install command will be able to achieve the same functionality.


2 chart Use

2.1 chart Search

## helm search repo chart_name (can only keywords, such as nginx)

# helm search repo nginx

2.2 chart download

## helm pull chart_name (name to be specific, for example google / nginx-ingress. Can not just keywords, or not download)

# helm pull google/nginx-ingress

2.3 chart self

        In addition to obtaining a third-party chart helm from a remote repository, but you can also create your own chart.

# helm create mychart

2.4 chart package

        If you want to upload self-built chart to a private warehouse to go, we need to first self-built chart pack.

# helm package mychart

2.5 chart upload

        Upload chart requires four steps:

        1) self-built private warehouse

        2) generate or update the chart index file

        3) Upload chart and index files

        4) updates the local chart warehouse

2.5.1 self-built private warehouse

        On how to create a private warehouse, refer to chapter content.

2.5.2 generated or updated chart index file

# helm repo index /root/helm/repo

        Index.yaml index file contents are as follows, seen from the content, it has been updated chart ready to upload the information.

2.5.3 upload chart and index files

        Log in private warehouses, upload chart and index files index.yaml.

2.5.4 update local chart warehouse

# Update the local chart warehouse, to keep pace with chart remote repository

# helm repo update

        After updating the local chart warehouse, you can retrieve a custom chart just upload the.

        Since then, the entire helm chart is easy after blasting.

Guess you like

Origin blog.51cto.com/14625168/2455533