VMware Harbor实战
Posted shunzi115
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VMware Harbor实战相关的知识,希望对你有一定的参考价值。
准备环境
Harbor 需要依赖docker,compose工具,需要提前安装好
# yum install docker-ce docker-compose wget -y
# systemctl start docker.service
# systemctl enable docker.service
# yum install python-pip -y
# pip install --upgrade pip
下载部署包上传证书
# wget https://github.com/goharbor/harbor/releases/download/v1.10.1/harbor-offline-installer-v1.10.1.tgz
# tar -zxf harbor-offline-installer-v1.10.1.tgz -C /opt/
# mkdir -p /opt/cert/
# 上传ca和key证书
# ls -lrt /opt/cert/
server.crt server.key
修改配置文件
# vim harbor.yml
hostname: www.uatops.com
# https related config
https:
port: 443
certificate: /opt/cert/server.crt
private_key: /opt/cert/server.key
harbor_admin_password: password
# The default data volume
data_volume: /opt/harbor/data
# ldap 配置
auth_mode: ldap_auth
ldap_url: ldap://9.110.187.100
ldap_basedn: ou=users,dc=ops,dc=cluster
ldap_searchdn: cn=ldapadm,dc=ops,dc=cluster
ldap_search_pwd: password
ldap_uid: cn
ldap_scope: 3
ldap_timeout: 50
https://www.uatops.com
以上是关于VMware Harbor实战的主要内容,如果未能解决你的问题,请参考以下文章
k8s之安装私有仓库Harbor以及从harbor推送/拉取镜像实战
VMware Harbor现已加入Rancher社区Catalog