首页 > 其他 > 详细

helm3安装harbor到k8s集群

时间:2020-09-14 12:47:50      阅读:253      评论:0      收藏:0      [点我收藏+]

第一步:安装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

 

helm3安装harbor到k8s集群

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!