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