Helm cơ bản

Nội dung
Nội dung

Helm cơ bản

1. Repository Management

COMMANDDESCRIPTION
helm repo listList Helm repositories
helm repo updateUpdate list of Helm charts from repositories

2. Chart Management

COMMANDDESCRIPTION
helm searchList all installed charts
helm search <CHARTNAME>Search for a chart
helm lsList all installed Helm charts
helm ls –deletedList all deleted Helm charts
helm ls –allList installed and deleted Helm charts
helm inspect values <REPO>/<CHART>Inspect the variables in a chart

3. Install/Delete Helm Charts

COMMANDDESCRIPTION
helm install –name <NAME> <REPO>/<CHART>Install a Helm chart
helm install –name <NAME> –values <VALUES.YML> <REPO>/<CHART>Install a Helm chart and override variables
helm status <NAME>Show status of Helm chart being installed
helm delete –purge <NAME>Delete a Helm chart

4. Upgrading Helm Charts

COMMANDDESCRIPTION
helm get values <NAME>Return the variables for a release
helm upgrade –values <VALUES.YML> <NAME> <REPO>/<CHART>Upgrade the chart or variables in a release
helm history <NAME>List release numbers
helm rollback <NAME> 1Rollback to a previous release number

5. Creating Helm Charts

COMMANDDESCRIPTION
helm create <NAME>Create a blank chart
helm lint <NAME>Lint the chart
helm package <NAME>Package the chart into foo.tgz
helm dependency updateInstall chart dependencies

6. Chart Folder Structure

wordpress/
  Chart.yaml          # A YAML file containing information about the chart
  LICENSE             # OPTIONAL: A plain text file containing the license for the chart
  README.md           # OPTIONAL: A human-readable README file
  requirements.yaml   # OPTIONAL: A YAML file listing dependencies for the chart
  values.yaml         # The default configuration values for this chart
  charts/             # A directory containing any charts upon which this chart depends.
  templates/          # A directory of templates that, when combined with values,
                      # will generate valid Kubernetes manifest files.
  templates/NOTES.txt # OPTIONAL: A plain text file containing short usage notes

Bài viết mới nhất