007_安装helm

本文涉及的产品
云数据库 Redis 版,社区版 2GB
推荐场景:
搭建游戏排行榜
简介: 007_安装helm

专注方向:

自动化流程服务

it咨询

it在线教学

doc

https://helm.sh/

https://helm.sh/docs/

https://artifacthub.io/

介绍

Helm is the best way to find, share, and use software built for Kubernetes.

helm 是查找, 分享, 使用 k8s 软件的最好方式

必要条件

Prerequisites

The following prerequisites are required for a successful and properly secured use of Helm.


  1. A Kubernetes cluster
  2. Deciding what security configurations to apply to your installation, if any
  3. Installing and configuring Helm.

安装

Install Helm

Download a binary release of the Helm client. You can use tools like homebrew, or look at the official releases page.

For more details, or for other options, see the installation guide.

snap install helm
helm completion bash > /etc/bash_completion.d/helm

使用

helm repo add bitnami https://charts.bitnami.com/bitnami
helm search repo bitnami
#  Make sure we get the latest list of charts
helm repo update
#   helm install [NAME] [CHART] [flags]
helm install bitnami/mysql --generate-name
# 更多的例子
#     $ helm install -f myvalues.yaml myredis ./redis
# or
#     $ helm install --set name=prod myredis ./redis
# or
#     $ helm install --set-string long_int=1234567890 myredis ./redis
# or
#     $ helm install --set-file my_script=dothings.sh myredis ./redis
# You can specify the '--values'/'-f' flag multiple times. The priority will be given to the
# last (right-most) file specified. For example, if both myvalues.yaml and override.yaml
# contained a key called 'Test', the value set in override.yaml would take precedence:
#     $ helm install -f myvalues.yaml -f override.yaml  myredis ./redis
# You can specify the '--set' flag multiple times. The priority will be given to the
# last (right-most) set specified. For example, if both 'bar' and 'newbar' values are
# set for a key called 'foo', the 'newbar' value would take precedence:
#     $ helm install --set foo=bar --set foo=newbar  myredis ./redis

验证

helm install helm-nginx bitnami/nginx
kubectl -n default get svc helm-nginx
helm list
# NAME            NAMESPACE       REVISION        UPDATED                                 STATUS          CHART           APP VERSION
# helm-nginx      default         1               2022-12-15 01:05:28.734881318 +0000 UTC deployed        nginx-13.2.17   1.23.3
helm uninstall helm-nginx
# release "helm-nginx" uninstalled
相关实践学习
基于Redis实现在线游戏积分排行榜
本场景将介绍如何基于Redis数据库实现在线游戏中的游戏玩家积分排行榜功能。
云数据库 Redis 版使用教程
云数据库Redis版是兼容Redis协议标准的、提供持久化的内存数据库服务,基于高可靠双机热备架构及可无缝扩展的集群架构,满足高读写性能场景及容量需弹性变配的业务需求。 产品详情:https://www.aliyun.com/product/kvstore     ------------------------------------------------------------------------- 阿里云数据库体验:数据库上云实战 开发者云会免费提供一台带自建MySQL的源数据库 ECS 实例和一台目标数据库 RDS实例。跟着指引,您可以一步步实现将ECS自建数据库迁移到目标数据库RDS。 点击下方链接,领取免费ECS&RDS资源,30分钟完成数据库上云实战!https://developer.aliyun.com/adc/scenario/51eefbd1894e42f6bb9acacadd3f9121?spm=a2c6h.13788135.J_3257954370.9.4ba85f24utseFl
相关文章
|
7月前
|
Kubernetes 应用服务中间件 Linux
helm安装和使用-通过helm部署k8s应用
helm安装和使用-通过helm部署k8s应用
|
7月前
|
Kubernetes NoSQL 关系型数据库
通过helm部署gitlab服务
通过helm部署gitlab服务
|
3月前
|
Kubernetes 关系型数据库 数据库
使用 Helm 部署 Wikijs
使用 Helm 部署 Wikijs
|
5月前
|
Kubernetes Cloud Native Docker
如何将自己的镜像使用 helm 部署
如何将自己的镜像使用 helm 部署
128 0
如何将自己的镜像使用 helm 部署
|
9月前
|
存储 Kubernetes 容器
入门Helm
入门Helm
208 2
|
12月前
|
Kubernetes Ubuntu Linux
helm安装
helm安装
228 0
|
12月前
|
存储 Kubernetes Shell
Helm
Helm
108 0
Helm安装
Helm安装
134 0
|
存储 Kubernetes Ubuntu
minikube helm 安装 jenkins
minikube helm 安装 jenkins
minikube helm 安装 jenkins
|
Kubernetes 负载均衡 Cloud Native
Helm 最详细的命令大全(2)
Helm 最详细的命令大全(2)