mkdir /data && cd /data
rz
tar xf harbor-offline-installer-v2.4.2.tgz
cp harbor.yml.tmpl harbor.yml
vi harbor.yml
生成证书
mkdir /data/harbor/ssl && cd /data/harbor/ssl
openssl genrsa -out tls.key 2048
openssl req -new -x509 -key tls.key -out tls.cert -days 360 -subj /CN=*.ttcms.com
下载docker-compose
curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
创建软连接
chmod +x /usr/local/bin/docker-compose
执行脚本 创建私有创库
./install.sh
创建证书目录 在需要用私有创库的机器上
mkdir -p /etc/docker/certs.d/reg.ttcms.com
复制证书 重命名 ca.crt
scp 192.168.1.100:/data/harbor/ssl/tls.cert /etc/docker/certs.d/reg.ttcms.com/ca.crt
下载helm地址
https://github.com/helm/helm/releases
helm 安装说明
https://helm.sh/docs/intro/install/
解压
tar -zxvf helm-v3.0.0-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/helm helm help 添加仓库 helm repo aliyun add https://kubernetse.oss-cn-hangzhou.aliyuncs.com/charts 微软仓库 helm repo add stable http://mirror.azure.cn/kubernetes/charts
ingress-nginx安装文档地址
https://kubernetes.github.io/ingress-nginx/deploy/
安装
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.3/deploy/static/provider/baremetal/deploy.yaml