ccyunchina-deploy/tools/images
root c55f2a0fed init 2023-06-19 15:13:51 +08:00
..
apps_images_list init 2023-06-19 15:13:51 +08:00
apps_images_list_bak init 2023-06-19 15:13:51 +08:00
images_batch_load.sh init 2023-06-01 16:47:24 +08:00
images_batch_save.sh init 2023-06-01 16:47:24 +08:00
images_list init 2023-06-01 16:47:24 +08:00
images_list_common init 2023-06-01 16:47:24 +08:00
images_list_simple init 2023-06-01 16:47:24 +08:00
readme.txt init 2023-06-01 16:47:24 +08:00

readme.txt

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1、images_list文件中所列的镜像为需要导出的镜像
2、运行镜像导出脚本
sh images_batch_save.sh ${param_dest_dir} ${param_src_harbor_host}
param_dest_dir 表示镜像文件保存的目录 
param_src_harbor_host 表示源harbor仓库地址

示例:
sh images_batch_save.sh "/data/k8s_deploy/images" "192.168.10.238"

3、脚本运行可能需要大量硬盘空间,运行完后会在目标目录产生一个名称为images.tar.gz的文件同时会将images_list文件复制到目标目录。部署脚本所有镜像导出过程大概需要20G左右空间导出后文件为7G左右最终经过压缩后2.6G