helm3 常用命令

简介: helm3 常用命令

1.查看版本

[root@rds005-master-1 hello]# helm version
version.BuildInfo{Version:"v3.6.0", GitCommit:"7f2df6467771a75f5646b7f12afb408590ed1755", GitTreeState:"clean", GoVersion:"go1.16.3"}

2.仓库管理


# helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts


[root@rds005-master-1 hello]# helm repo add apphub https://apphub.aliyuncs.com
"apphub" has been added to your repositories

[root@rds005-master-1 helm]# helm repo list
NAME    URL
apphub  https://apphub.aliyuncs.com

[root@rds005-master-1 helm]# helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "apphub" chart repository
Update Complete. ⎈Happy Helming!⎈



3.部署应用

[root@rds005-master-1 helm]# helm search repo nacos
NAME            CHART VERSION   APP VERSION     DESCRIPTION
apphub/nacos    0.1.0           1.0             A Helm chart for Kubernetes
[root@rds005-master-1 helm]# helm install apphub/nacos -n default
Error: must either provide a name or specify --generate-name
[root@rds005-master-1 helm]# helm install -name lys-nacos apphub/nacos -n default
NAME: lys-nacos
LAST DEPLOYED: Sat Nov 13 15:17:13 2021
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Get the application URL by running these commands:
  export NODE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services  nacos-cs
  export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")
  echo http://$NODE_IP:$NODE_PORT/nacos
2. MODE:
   quickstart: you need to modify replicaCount in the values.yaml, .Values.replicaCount=1
   standalone: you need to modify replicaCount in the values.yaml, .Values.replicaCount=1
   cluster: kubectl scale sts default-nacos --replicas=3


[root@rds005-master-1 helm]# helm uninstall  lys-nacos
release "lys-nacos" uninstalled

4.拉取

[root@rds005-master-1 helm]# helm search repo gitlab
NAME                    CHART VERSION   APP VERSION     DESCRIPTION
apphub/docker-gitlab    0.1.1           v12.1.6         GitLab CE is set up in the Docker image using t...
stable/gitlab-ce        0.2.1                           GitLab Community Edition
stable/gitlab-ee        0.2.1                           GitLab Enterprise Edition
[root@rds005-master-1 helm]# mkdir gitlab
[root@rds005-master-1 helm]# cd gitlab/
[root@rds005-master-1 gitlab]# ls
[root@rds005-master-1 gitlab]# helm pull apphub/docker-gitlab
[root@rds005-master-1 gitlab]# ls
docker-gitlab-0.1.1.tgz
[root@rds005-master-1 gitlab]# tar -zxvf docker-gitlab-0.1.1.tgz

参考文档

https://helm.sh/docs/

https://artifacthub.io/

相关文章
|
Docker 容器
如何通过pid定位是哪个容器
如何通过pid定位是哪个容器
320 0
|
6月前
|
人工智能 自然语言处理 知识图谱
Yuxi-Know:开源智能问答系统,基于大模型RAG与知识图谱技术快速构建知识库
Yuxi-Know是一个结合大模型RAG知识库与知识图谱技术的智能问答平台,支持多格式文档处理和复杂知识关系查询,具备多模型适配和智能体拓展能力。
1242 55
Yuxi-Know:开源智能问答系统,基于大模型RAG与知识图谱技术快速构建知识库
|
关系型数据库 MySQL Linux
mysql登录报错Can't create a new thread
mysql登录报错Can't create a new thread
470 0
|
存储 Kubernetes Linux
helm 简介及基本使用
helm 简介及基本使用
3401 0
helm 简介及基本使用
|
12月前
|
运维 监控 网络安全
自动化运维的魔法:如何用Python简化日常任务
【10月更文挑战第9天】在数字时代的浪潮中,运维人员面临着日益增长的挑战。本文将揭示如何通过Python脚本实现自动化运维,从而提高效率、减少错误,并让运维工作变得更具创造性。我们将探索一些实用的代码示例,这些示例将展示如何自动化处理文件、监控系统性能以及管理服务器配置等常见运维任务。准备好让你的运维工作升级换代了吗?让我们开始吧!
|
API Docker 容器
jumpserver API调试
jumpserver API调试
|
Ubuntu 前端开发 Shell
Linux apt命令详解
1.apt简介 apt(Advanced Packaging Tool)是一个在 Debian 和 Ubuntu 中的 Shell 前端软件包管理器。 apt 命令提供了查找、安装、升级、删除某一个、一组甚至全部软件包的命令,而且命令简洁而又好记。 apt 命令执行需要超级管理员权限(root)。
978 0
|
IDE 开发工具 芯片
CH32V307的新手使用方法
一篇文章教你如何使用CH32V307来开发一个简单的功能
1537 0
CH32V307的新手使用方法
|
Kubernetes 应用服务中间件 nginx
如何在本地使用Docker搭建和运行Kubernetes集群
获取Service的访问地址 运行以下命令来获取Service的访问地址:
1269 0
|
缓存 JavaScript 开发工具