「Helm」- 常用命令

  CREATED BY JENKINSBOT

内容简介

本文介绍Helm中的常用命令。

常用命令

# 添加仓库

#!/bin/sh

helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
helm repo add stable https://kubernetes-charts.storage.googleapis.com # 稳定版仓库

helm repo update # 从Chart仓库中,更新本地可用的Chart信息。

# 搜索图表(Chart)

#!/bin/sh

helm search repo "<chart-name>"

# 例如
helm search repo "haproxy"

# 查看所有版本
helm search repo -l "haproxy"

# 安装图表

#!/bin/sh

helm install "<name>" "chart-name"

# 例如
helm install "foo" "incubator/haproxy-ingress" # 生成的资源(比如Ingress、Service、Deployment等等)将会以foo-为前缀

# 安装特定版本
heml install "foo" "incubator/haproxy-ingress" --version "v1.1.2"

# 查看图表

#!/bin/sh

helm list

# 卸载图表

#!/bin/sh

helm uninstall "<name>"

# 例如
helm uninstall "foo"
helm delete "foo"

参考文献

Helm/Documentation/Quickstart Guide
Uninstalling the Chart
How to delete(uninstall) helm chart on specific resource
For a helm chart, what versions are available?
How to install a specific Chart version