harbor安装:
docker docker-compose 自己安装好 pip自己装好,这些不详细介绍
[root@localhost ~]# wget https://storage.googleapis.com/harbor-releases/release-1.7.0/harbor-offline-installer-v1.7.0.tgz #如果无法科*学*上*网,可以从我的网盘中下载(链接: https://pan.baidu.com/s/1RnULNRY6ExulTI8hzejZQw 提取码: b81p)
[root@localhost ~]# tar xf harbor-offline-installer-v1.7.0.tgz
[root@localhost ~]# cd harbor
配置Harbor
我只配置了一个IP 即用域名去更改对应的IP地址
启动harbor
修改完配置文件后,在的当前目录执行./install.sh,Harbor服务就会根据当期目录下的docker- compose.yml开始下载依赖的镜像,检测并按照顺序依次启动各个服务
./install.sh
之后就可以访问了
参考链接:https://www.cnblogs.com/panwenbin-logs/p/10218099.html
helm的仓库管理
一、下载安装包
#在master节点中执行,以下这条命令就是下载文件到当前目录而已,下载完成之后让我们将chartmuseum赋予权限,就是可执行了chmod 777 chartmuseum,然后移动到/usr/local/bin。
[root@k8s-master-155-221 ~]# curl -LO https://s3.amazonaws.com/chartmuseum/release/latest/bin/linux/amd64/chartmuseum
[root@k8s-master-155-221 ~]# chmod 777 chartmuseum
[root@k8s-master-155-221 ~]# mv chartmuseum /usr/local/bin
二、创建服务配置和启动文件
[root@k8s-master-155-221 ~]# vim /etc/systemd/system/chartmuseum.service
[Unit]
Description=chartmuseum
Requires=network-online.target
After=network-online.target
[Service]
EnvironmentFile=/etc/chartmuseum/chartmuseum.config
User=root
Restart=allways
ExecStart=/usr/local/bin/chartmuseum $ARGS
ExecStop=/usr/local/bin/chartmuseum step-down
[Install]
WantedBy=multi-user.target
[root@k8s-master-155-221 ~]# mkdir /etc/chartmuseum/
[root@k8s-master-155-221 ~]# vim /etc/chartmuseum/chartmuseum.config
ARGS=\
--port=8089 \
--storage="local" \
--storage-local-rootdir="/var/lib/chartmuseum" \
--log-json
[root@k8s-master-155-221 ~]# systemctl start chartmuseum
[root@k8s-master-155-221 ~]# systemctl status chartmuseum
配置helm使用chartmuseum
helm plugin install https://github.com/chartmuseum/helm-push
helm repo add chartmuseum http://localhost:8089
helm repo update
参考链接:https://www.cnblogs.com/panwenbin-logs/p/12034203.html