主题
安装
https://github.com/helm/helm/releases 下载指定版本4.0.0
tar -zxvf helm-v4.0.0-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/
概念
- Chart是 Helm 包。它包含在 Kubernetes 集群中运行应用程序、工具或服务所需的所有资源定义
- 添加库
常用命令
bash
helm search
helm install # 安装软件包
helm status # 跟踪版本状态或重新读取配置信息
helm show values # 安装前查看图标可配置项
helm upgrade # 版本升级
helm rollback # 版本回退
helm uninstall # 卸载版本
helm repo list # 添加、列出和删除仓库
helm repo add dev https://example.com/dev-charts
helm repo remove # 删除仓库
# 创建自己的图表
helm create homepage
helm lint # 验证
helm package homepage # 打包快速使用
bash
# helm create homepage
Creating homepage
# cd homepage
# rm -rf templates/
# helm install full-coral ./homepage
NAME: full-coral
LAST DEPLOYED: Mon Feb 9 15:35:28 2026
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
# helm get manifest full-coral
---
# Source: homepage/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: mychart-configmap
data:
myvalue: "Hello World"
# 可以将configmap.yaml中的mychart修改为{{ .Release.Name }}
# helm install --debug --dry-run goodly-guppy ./homepage