Helm cơ bản
1. Repository Management
COMMAND |
DESCRIPTION |
helm repo list |
List Helm repositories |
helm repo update |
Update list of Helm charts from repositories |
2. Chart Management
COMMAND |
DESCRIPTION |
helm search |
List all installed charts |
helm search <CHARTNAME> |
Search for a chart |
helm ls |
List all installed Helm charts |
helm ls –deleted |
List all deleted Helm charts |
helm ls –all |
List installed and deleted Helm charts |
helm inspect values <REPO>/<CHART> |
Inspect the variables in a chart |
3. Install/Delete Helm Charts
COMMAND |
DESCRIPTION |
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
COMMAND |
DESCRIPTION |
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> 1 |
Rollback to a previous release number |
5. Creating Helm Charts
COMMAND |
DESCRIPTION |
helm create <NAME> |
Create a blank chart |
helm lint <NAME> |
Lint the chart |
helm package <NAME> |
Package the chart into foo.tgz |
helm dependency update |
Install 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
Cảm ơn bạn đã trả lời.