K8S学习之基础六十一:k8s中部署helm

K8S的helm

https://helm.sh

https://hub.kubeapps.com

helm是k8s的包管理工具,相当于linux下的yum或apt-get

helm是命令行客户端工具,主要用来chart的创建、打包、发布和管理

chart是一个yaml文件的集合,yaml清单文件叫做chart图表

helm v3版本的安装

官网下载最新的helm

https://www.github/com/helm/helm/releases

复制代码
# 解压包
tar -xzvf helm-v3.17.2-linux-amd64.tar.gz.tar
# 把helm放到/usr/bin目录下
mv linux-amd64/helm /usr/bin/
helm

配置国内存放chart仓库的地址

阿里云仓库(https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts)

官方仓库(https://hub.kubeapps.com/charts/incubator)官方chart仓库,国内可能无法访问。

微软仓库(http://mirror.azure.cn/kubernetes/charts/)这个仓库推荐,基本上官网有的chart这里都有,国内可能无法访问。

复制代码
#添加阿里云的chart仓库
helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
#显示如下:
# "aliyun" has been added to your repositories

#添加bitnami的chart仓库
helm repo add bitnami https://charts.bitnami.com/bitnami

#更新chart仓库
helm repo update

#查看配置的chart仓库有哪些
helm repo list
NAME   	URL                                                   
aliyun 	https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
bitnami	https://charts.bitnami.com/bitnami

#删除chart仓库地址
helm repo remove aliyun
"aliyun" has been removed from your repositories


#重新添加阿里云的chart仓库
helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
#更新chart仓库
helm repo update

#从指定chart仓库地址搜索chart
helm search repo aliyun



相关推荐
蝎子莱莱爱打怪9 小时前
GitLab CI/CD + Docker Registry + K8s 部署完整实战指南
后端·docker·kubernetes
阿里云云原生4 天前
阿里云获评 Agentic AI 开发平台领导者,函数计算 AgentRun 赢下关键分!
云原生
蝎子莱莱爱打怪4 天前
Centos7中一键安装K8s集群以及Rancher安装记录
运维·后端·kubernetes
崔小汤呀4 天前
Docker部署Nacos
docker·容器
缓解AI焦虑4 天前
Docker + K8s 部署大模型推理服务:资源划分与多实例调度
docker·容器
阿里云云原生4 天前
MSE Nacos Prompt 管理:让 AI Agent 的核心配置真正可治理
微服务·云原生
阿里云云原生4 天前
当 AI Agent 接管手机:移动端如何进行观测
云原生·agent
阿里云云原生4 天前
AI 原生应用开源开发者沙龙·深圳站精彩回顾 & PPT下载
云原生
阿里云云原生4 天前
灵感启发:日产文章 100 篇,打造“实时热点洞察”引擎
云原生
1candobetter4 天前
Docker Compose Build 与 Up 的区别:什么时候必须重建镜像
docker·容器·eureka