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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM