惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
腾讯CDC
D
Docker
G
Google Developers Blog
D
DataBreaches.Net
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
The Cloudflare Blog
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
量子位
美团技术团队
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Engineering at Meta
Engineering at Meta
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 勤劳の洗碗机

pyinstaller打包exe故障解析 curl 访问k8s api k8s 之HPA应用 statefulset 及storageclass hadoop 伪分布式 完全分布式 及HA部署 LDAP部署及实践 docker 制作自己的mysql镜像 k8s 压测工具之perf-test mysql相关(三)、主从复制 shell执行mysql脚本 分布式minio 误删libc.so.6文件补救 docker 使用bind 动态扩容pvc k8s备份工具之velero jmeter使用 docker 制作ssh镜像 docker 制作自定义的nginx镜像 docker部署sharding-proxy
image-syncer
勤劳の洗碗机 · 2020-12-01 · via 博客园 - 勤劳の洗碗机

1、配置文件

{
    "auth": {
        "10.1.11.46": {
            "username": "admin",
            "password": "Harbor12345",
            "insecure": true
        }
    },
    "images": {
        "10.10.101.176:8443/k8s-deploy/ceph": "10.1.11.46/ceph/ceph",
"10.10.101.176:8443/k8s-deploy/test": "10.1.11.46/ceph/test"
    }
}

auth配置harbor账号密码

images配置同步规则,前面是源 后面是目的,上面例子就是把10.10.101.176:8443/k8s-deploy/ceph 库同步到10.1.11.46/ceph/ceph下

注意:如果要同步整个registry,需要在images里写多条规则

2、开始同步

[root@10 DTR]# ./image-syncer --proc=10 --config=./harbor.json --retries=1


Start to generate sync tasks, please wait ...
INFO[2020-12-01 15:21:59] Cannot find auth information for 10.10.101.176:8443/k8s-deploy/ceph, pull actions will be anonymous 
INFO[2020-12-01 15:21:59] Get tags of 10.10.101.176:8443/k8s-deploy/ceph successfully: [v1.4.7] 
INFO[2020-12-01 15:21:59] Cannot find auth information for 10.10.101.176:8443/k8s-deploy/ceph:v1.4.7, pull actions will be anonymous 
INFO[2020-12-01 15:22:00] Find auth information for 10.1.11.46/ceph/ceph:v1.4.7, username: admin 
INFO[2020-12-01 15:22:00] Generate a task for 10.10.101.176:8443/k8s-deploy/ceph:v1.4.7 to 10.1.11.46/ceph/ceph:v1.4.7 
Start to handle sync tasks, please wait ...
INFO[2020-12-01 15:22:00] Get manifest from 10.10.101.176:8443/k8s-deploy/ceph:v1.4.7 
INFO[2020-12-01 15:22:01] Blob sha256:6910e5a164f725142d77994b247ba20040477fbab49a721bdbe8d61cf855ac23(74866818) has been pushed to 10.1.11.46/ceph/ceph, will not be pulled 
INFO[2020-12-01 15:22:01] Blob sha256:90161ff7470d7d629165d4a3deb6c30d6b4f62e283bd4a2b2003a6668bcda00d(247930394) has been pushed to 10.1.11.46/ceph/ceph, will not be pulled 
INFO[2020-12-01 15:22:02] Blob sha256:b7e416a8a537d1e2b47e2597cd25bdf5e2704444ccbace664dcbe4d4693d0b46(9466) has been pushed to 10.1.11.46/ceph/ceph, will not be pulled 
INFO[2020-12-01 15:22:02] Blob sha256:c1999958c190bb7fd4a0914255ec9f67aff57325bdd685e3450e50cab5a3232b(26601597) has been pushed to 10.1.11.46/ceph/ceph, will not be pulled 
INFO[2020-12-01 15:22:03] Blob sha256:d070b06a8225df541071c712adf96632262bbd74073029177746bfb4082242dd(2739) has been pushed to 10.1.11.46/ceph/ceph, will not be pulled 
INFO[2020-12-01 15:22:03] Blob sha256:c6d9c23d887f4c0413ec816ffa9e886451b083304674e86a0184e60c46859ddc(3658) has been pushed to 10.1.11.46/ceph/ceph, will not be pulled 
INFO[2020-12-01 15:22:04] Blob sha256:6d27aeef3339d1bc806cd74a00ea0115d773f050f41334b11d60fcc4a809a4a2(56170) has been pushed to 10.1.11.46/ceph/ceph, will not be pulled 
INFO[2020-12-01 15:22:04] Blob sha256:6433f073612174d8abca66ec3ff3dc0f3c662cff4522cd7190be786e368f2ccf(14215) has been pushed to 10.1.11.46/ceph/ceph, will not be pulled 
INFO[2020-12-01 15:22:05] Put manifest to 10.1.11.46/ceph/ceph:v1.4.7  
INFO[2020-12-01 15:22:05] Synchronization successfully from 10.10.101.176:8443/k8s-deploy/ceph:v1.4.7 to 10.1.11.46/ceph/ceph:v1.4.7 
Finished, 0 sync tasks failed, 0 tasks generate failed
INFO[2020-12-01 15:22:05] Finished, 0 sync tasks failed, 0 tasks generate failed

3、查看结果

curl https://10.1.11.46/api/search?q=ceph -k | grep ceph