You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

  1. # Offline deployment
  2. ## manage-offline-container-images.sh
  3. Container image collecting script for offline deployment
  4. This script has two features:
  5. (1) Get container images from an environment which is deployed online.
  6. (2) Deploy local container registry and register the container images to the registry.
  7. Step(1) should be done online site as a preparation, then we bring the gotten images
  8. to the target offline environment.
  9. Then we will run step(2) for registering the images to local registry.
  10. Step(1) can be operated with:
  11. ```shell
  12. manage-offline-container-images.sh create
  13. ```
  14. Step(2) can be operated with:
  15. ```shell
  16. manage-offline-container-images.sh register
  17. ```
  18. ## generate_list.sh
  19. This script generates the list of downloaded files and the list of container images by `roles/download/defaults/main.yml` file.
  20. Run this script will execute `generate_list.yml` playbook in kubespray root directory and generate four files,
  21. all downloaded files url in files.list, all container images in images.list, jinja2 templates in *.template.
  22. ```shell
  23. ./generate_list.sh
  24. tree temp
  25. temp
  26. ├── files.list
  27. ├── files.list.template
  28. ├── images.list
  29. └── images.list.template
  30. 0 directories, 5 files
  31. ```
  32. In some cases you may want to update some component version, you can declare version variables in ansible inventory file or group_vars,
  33. then run `./generate_list.sh -i [inventory_file]` to update file.list and images.list.