kubespray/contrib/offline
ERIK 48e938660d
Allow replacement of address prefixes for all images (#8764)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
2022-05-13 09:23:14 +03:00
..
README.md Allow replacement of address prefixes for all images (#8764) 2022-05-13 09:23:14 +03:00
docker-daemon.json Add manage-offline-container-images.sh (#7024) 2021-01-06 08:05:52 -08:00
generate_list.sh nit: Add offline note for kube-* images (#8718) 2022-05-10 06:41:44 -07:00
generate_list.yml feat(offline): Improve generate_list.sh to generate offline file list using ansible (#8537) (#8538) 2022-02-13 23:19:28 -08:00
manage-offline-container-images.sh Allow replacement of address prefixes for all images (#8764) 2022-05-13 09:23:14 +03:00
registries.conf Add manage-offline-container-images.sh (#7024) 2021-01-06 08:05:52 -08:00

README.md

Offline deployment

manage-offline-container-images.sh

Container image collecting script for offline deployment

This script has two features: (1) Get container images from an environment which is deployed online. (2) Deploy local container registry and register the container images to the registry.

Step(1) should be done online site as a preparation, then we bring the gotten images to the target offline environment. if images are from a private registry, you need to set PRIVATE_REGISTRY environment variable. Then we will run step(2) for registering the images to local registry.

Step(1) can be operated with:

manage-offline-container-images.sh   create

Step(2) can be operated with:

manage-offline-container-images.sh   register

generate_list.sh

This script generates the list of downloaded files and the list of container images by roles/download/defaults/main.yml file.

Run this script will execute generate_list.yml playbook in kubespray root directory and generate four files, all downloaded files url in files.list, all container images in images.list, jinja2 templates in *.template.

./generate_list.sh
tree temp
temp
├── files.list
├── files.list.template
├── images.list
└── images.list.template
0 directories, 5 files

In some cases you may want to update some component version, you can declare version variables in ansible inventory file or group_vars, then run ./generate_list.sh -i [inventory_file] to update file.list and images.list.