2.4.1 部署环境
环境选择在 pg60-200.k8s.host.com
虚机上部署
2.4.2 下载安装二进制软件包
# GitHub仓库地址:https://github.com/goharbor/harbor
shell> cd /usr/local/src
shell> wget http://dlsw.91donkey.com/software/source/k8s/harbor-offline-installer-v1.8.6.tgz
shell> tar zxf harbor-offline-installer-v1.8.6.tgz -C /opt/
2.4.3 配置
- 编辑 /opt/harbor/harbor.yml 文件,修改下面的参数值:
hostname: harbor.k8s.91donkey.com
data_volume: /export/harbor/data
location: /export/harbor/log
2.4.4 安装docker-compose
shell> yum -y install docker-compose
shell> rpm -qa docker-compose
docker-compose-1.18.0-4.el7.noarch
2.4.5 安装harbor
shell> mkdir -p /export/harbor/{data,log}
shell> cd /opt/harbor
shell> ./install.sh
2.4.6 检查harbor启动情况
2.4.7 浏览器访问harbor
- 访问地址:http://harbor.k8s.91donkey.com
- 默认登录用户名:admin
- 默认登录的密码:Harbor12345