Harbor 2.1安装配置,以支持helm charts管理及clair安全扫描

harbor仓库,现在主要三大领域的存储,一为docker镜像,二为helm charts部署文件,三为OCI标准化的AI模型文件。

这篇算是前两篇的升级版。支持更多功能
https://www.jianshu.com/p/9d249e0df269
https://www.jianshu.com/p/4605307d04a0

一,准备好离线安装文件

harbor-offline-installer-v2.1.0.tgz

二,解压

tar -zxvf harbor-offline-installer-v2.1.0.tgz
之后操作,进入解压的harbor目录,以管理员root帐号运行(因为涉及权限)

三,制作harbor.yml文件

cp harbor.yml.tmpl harbor.yml
然后,根据实际域名和端口进行修改。

hostname: harbor.demo.com.cn

# http related config
http:
  # port for http, default is 80. If https enabled, this port will redirect to https port
  port: 8086

四,执行prepare脚本

./prepare

五,安装并启动,支持helm charts管理和clair安全扫描

./install.sh --with-clair --with-chartmuseum
(需要提前安装好docker-compose,我使用的是1.26.2版)

Creating network "harbor_harbor" with the default driver
Creating network "harbor_harbor-clair" with the default driver
Creating network "harbor_harbor-chartmuseum" with the default driver
Creating harbor-log ... done
Creating harbor-db     ... done
Creating registryctl   ... done
Creating registry      ... done
Creating chartmuseum   ... done
Creating harbor-portal ... done
Creating redis         ... done
Creating clair         ... done
Creating harbor-core   ... done
Creating clair-adapter     ... done
Creating nginx             ... done
Creating harbor-jobservice ... done

六,登陆验证

http://harbor.demo.com.cn:8086

截屏2021-01-13下午2.26.11.png

你可能感兴趣的:(Harbor 2.1安装配置,以支持helm charts管理及clair安全扫描)