helm常用命令解析

您所在的位置:网站首页 王俊凯弹唱周杰伦蜗牛 helm常用命令解析

helm常用命令解析

2022-06-09 22:19| 来源: 网络整理| 查看: 265

0 分享至

用微信扫码二维码

分享至好友和朋友圈

Helm 帮助您管理 Kubernetes 应用——Helm 图表,即使是最复杂的 Kubernetes 应用程序,都可以帮助您定义,安装和升级。

helm管理命令

#helm version

增加repo

#helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts#helm repo add --username admin --password password myharbor https://harbor.qing.cn/chartrepo/charts

更新repo仓库资源

#helm repo update

charts管理

查看当前安装的charts

#helm list

将helm search hub显示所有可用图表。

#helm search hub redis

使用helm search repo,您可以在已添加的存储库中找到charts的名称:

#helm search repo redis

打印出指定的Charts的详细信息

#helm show chart stable/redis

下载charts到本地

#helm fetch redis

安装charts

#helm install redis stable/redis

查看charts状态

#helm status redis

删除charts

#helm uninstall redis

自定义charts

创建charts

#helm create helm_charts

检查chart语法正确性

# helm lint myapp

打包自定义的chart

# helm package myapp

查看生成的yaml文件

#helm template myapp-1.tgz

使用默认chart部署到k8s

helm install myapp myapp-1.tgz

使用包去做release部署

helm install --name example2 helm-chart-0.1.0.tgz --set service.type=NodePort

更新与回滚

查看当前chart信息

#helm list

更新images

#helm rollback myapp 1

本文地址:https://www.linuxprobe.com/helm-common-commands.html

特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。

Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.

/阅读下一篇/ 返回网易首页 下载网易新闻客户端


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3