3.2.4版本 Helm 常用命令

Helm 常用命令

  • 查找要安装应用的信息
helm  search  repo   程序名
helm  search  repo  nginx
  • 安装一个 helm 应用
helm install  自定义应用名   chart库文件名
helm Install  nginx  aliyuncs/nginx
  • 卸载一个应用
helm uninstall  应用名
helm uninstall  nginx
  • 查看集群中 helm 应用的详细信息
helm list


release

安装一个 helm 模板文件
helm install  自定义应用名  自定义chart库路径
helm install  nginx /kubernetes/helm/hello-world/
查看集群中 release 的详细信息
helm status release名
helm status nginx
检索已经发布的 release
helm get manifest release名
helm get manifest hello-world
更新 release 版本
helm upgrade release名 目录
helm upgrade hello-world  /kubernetes/helm/hello-world
卸载一个 release
helm  uninstall   release名
helm  uninstall   hello-world
查看 release 历史版本,当前版本
helm history  release名	历史版本
helm status  release名	当前版本
回滚 release 历史版本
helm rollback release名  版本号
helm rollback hello-world  3
测试 helm chart 剧本是否有错误
helm  lint
清空、删除 release 历史记录
helm delete --purge release名
helm delete --purge hello-world
尝试运行 release
helm install --dry-run chart目录位置
helm install --dry-run .
helm install --dry-run /kubernetes/helm/hello-world


chart

添加 chart 库
helm repo add  自定义库名    URL路径
helm repo add  aliyuncs	   https://apphub.aliyuncs.com
查看有哪些 chart 库
helm repo list
查看 chart 库内可安装应用程序
helm search repo aliyuncs
创建一个 chart 范例
helm  create   应用名
helm  create   hello-world
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值