helm3安装harbor到k8s集群

第一步:安装helm3

1,下载helm3

wget  https://get.helm.sh/helm-v3.3.1-linux-amd64.tar.gz

2,安装

tar -zxvf helm-v3.3.1-linux-amd64.tar.gz

mv linux-amd64/helm /usr/local/bin/

3,添加常用仓库

helm repo add harbor https://helm.goharbor.io

helm repo add stable https://kubernetes-charts.storage.googleapis.com/

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 bitnami https://charts.bitnami.com/bitnami

repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/

第二步:安装harbor

1,下载

helm pull harbor/harbor

tar -zxvf harbor-1.4.2.tgz

cd harbor

2,安装

(1)添加证书 ,提前在阿里云申请好

kubectl create secret tls  harbor-tls-secret --namespace=devops --cert=core.test.com.crt --key=core.test.com.key

(2)更改配置文件

vim values.yaml

更改绑定域名和存储类 storageClass: "" 更改为建好的

(3)执行安装

helm install -n devops harbor .

(4)卸载

helm -n devops uninstall  harbor

原文地址:https://www.cnblogs.com/ligang0357/p/13665910.html