Kubernetes - Helm 快速安装

发布时间:2024年01月11日

一、最快安装——官网提供的脚本——默认获取最新版本

cd /usr/local/src/
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh

helm search hub wordpress

source <(helm completion bash)
helm completion bash > /etc/bash_completion.d/helm

二、二进制安装

1、官网下载安装包:https://github.com/helm/helm/releases

2、下载——安装

wget https://get.helm.sh/helm-v3.12.2-linux-amd64.tar.gz
# 解压
tar -zxvf helm-v3.12.2-linux-amd64.tar.gz

# 进入解压后的目录中,将helm软连接到系统的bin目录下
cd linux-amd64
ln -s /app/xwsoft/install_package/linux-amd64/helm /usr/bin/helm

3、查看 Helm

helm version

[root@k8s-master01 k8s]# helm version
version.BuildInfo{Version:"v3.12.2", GitCommit:"1e210a2c8cc5117d1055bfaa5d40f51bbc2e345e", GitTreeState:"clean", GoVersion:"go1.20.5"}

4、命令补全

helm search hub wordpress

source <(helm completion bash)
helm completion bash > /etc/bash_completion.d/helm

5、删除重新安装

helm repo add k8s-dashboard https://kubernetes.github.io/dashboard
helm repo update
helm show values k8s-dashboard/kubernetes-dashboard
helm list
helm search repo kubernetes-dashboard
helm delete kubernetes-dashboardd
helm install kubernetes-dashboard k8s-dashboard/kubernetes-dashboard --version 3.0.0

文章来源:https://blog.csdn.net/Dream_Weave/article/details/135519620
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。