赞
踩
到helm下载对应的压缩包:https://github.com/helm/helm/releases
解压,将helm文件cp到/usr/local/bin/ 文件夹下,查看helm版本;不同的k8s对应不同的helm版本,下载时留心注意;
tar xf helm-v3.7.2-linux-amd64.tar.gz
cd linux-amd64/
cp helm /usr/local/bin/
helm version
以cert-manager为例:
在artifacthub中搜索,地址:https://artifacthub.io/
# 添加仓库
helm repo add jetstack https://charts.jetstack.io
# 查询版本
helm search repo jetstack/cert-manager --version v1.8.2
# pull应用charts到本地
helm pull jetstack/cert-manager --version v1.8.2
# 解压压缩包
tar -zxvf cert-manager-v1.8.2.tgz
# 查看values.yaml 拿到所有的镜像名字 并下载下来
# 将value.yaml 中的 image字段改成如下:
image:
registry: quay.io
repository: jetstack/cert-manager-controller
tag: v1.8.2
pullPolicy: IfNotPresent
#!/usr/bin/env bash set -exo pipefail if [[ ! -f "values.yaml" ]]; then cp charts/values-template.yaml values.yaml fi if [[ -d "images" ]] && [[ "`ls -A images`" != "" ]]; then for f in images/*; do docker load -i $f; done fi helm upgrade -i cert-manager \ -f values.yaml \ -n "functions" --create-namespace \ charts/cert-manager-*.tgz
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。