【Kubernetes基础】Helm工具入门与使用

前言

Helm是Kubernetes包管理工具,类似CentOS的yum包管理工具

学习Kubernetes,了解如何通过Helm安装跟管理Kubernetes应用很有必要,下面就来介绍Helm的入门使用。

一、Helm基本管理

1.1 检查Helm版本

helm version

helm version

二、配置Helm仓库

Helm可以通过添加仓库源来使用公共的 Chart仓库

2.1 添加官方稳定Chart仓库

Helm repo add

helm repo add stable https://charts.helm.sh/stable

helm repo add stable-hub https://hub.helm.sh/stable

常见问题

#国内直接配置stable仓库报错

#报错提示一
Error: looks like "https://charts.helm.sh/stable" is not a valid chart repository or cannot be reached: Get "https://charts.helm.sh/stable/index.yaml": dial tcp: lookup charts.helm.sh: no such host

#报错提示二
Error: looks like "https://charts.helm.sh/stable" is not a valid chart repository or cannot be reached: Get "https://charts.helm.sh/stable/index.yaml": dial tcp [2606:50c0:8002::153]:443: connect: no route to host


#报错提示三
Error: looks like "https://charts.helm.sh/stable" is not a valid chart repository or cannot be reached: context deadline exceeded (Client.Timeout or context cancellation while reading body)

解决思路

由于国内网络访问的限制,建议配置私有仓库,或者国内可用的Helm仓库,参考如下2.2部分

2.2 添加国内Helm仓库

#配置国内常用的Helm仓库
helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts

helm repo add azure http://mirror.azure.cn/kubernetes/charts

helm repo add kaiyuanshe http://mirror.kaiyuanshe.cn/kubernetes/charts

helm repo add bitnami https://charts.bitnami.com/bitnami

#arthub上ingress-nginx
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx

2.2.1 本地Docker Desktop添加Chart仓库

aliyun

kaiyuanshe

bitnami(Vmware)

2.2.2 常用Helm Chart包

ingress-nginx(kubernetes仓库)

k8s-dashboard(kubernetes仓库)

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值