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

推荐订阅源

宝玉的分享
宝玉的分享
NISL@THU
NISL@THU
E
Exploit-DB.com RSS Feed
L
LINUX DO - 热门话题
L
Lohrmann on Cybersecurity
K
Kaspersky official blog
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
S
Schneier on Security
G
GRAHAM CLULEY
The Hacker News
The Hacker News
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
爱范儿
爱范儿
P
Privacy International News Feed
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
S
Securelist
G
Google Developers Blog
The Last Watchdog
The Last Watchdog
Google Online Security Blog
Google Online Security Blog
美团技术团队
F
Fortinet All Blogs
小众软件
小众软件
Recorded Future
Recorded Future
V
Visual Studio Blog
B
Blog RSS Feed
H
Help Net Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
Latest news
Latest news
Spread Privacy
Spread Privacy
H
Heimdal Security Blog

博客园 - 勤劳の洗碗机

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