Air-gapped Installation for Addon

    Generally, you should git clone the repo which contained the addon configuration, you can specify a local addon directory when enable an addon for installation. While you should make sure all container images or helm charts are replaced by your private registry.

    You can follow these steps as an example.

    1. Git clone the catalog repo to download these addon files. You can find all community addons in subdirectory ./addons/ and experimental addons in subdirectory ./experimental/addons.
    1. Sync the dependency container images in the addon to your private image registry, the sync command can be as following:
    1. $ docker pull fluxcd/helm-controller:v0.11.1
    2. $ docker push <your repo url>/fluxcd/helm-controller:v0.11.1
    1. Parts of addons may rely on helm charts, e.g. terraform addon. You should sync these helm charts to your private chart registry.
    1. Use vela cli to enable an addon with specify a local addon dir to install offline.

    1. $ vela addon enable /your/local/addon/directory

    Here’s a list about images or helm charts of all community addons that should be synced for air-gapped installation.

    You need sync these images to your own image registry, and modify the related addon files to reference you own registry.

    eg:

    1. Sync the image oamdev/terraform-controller:0.3.5 to your own images registry.
    2. Dowload the terraform helm chart.
    1. $ helm pull https://charts.kubevela.net/addons/terraform-controller-0.3.5.tgz
    1. Modify the addon file terraform/resources/terraform-controller.cue change output.properties.url to your chart museum’s url.

    2. Sync the image oamdev/vela-rollout:v1.6.4 to your own images registry.

    3. Dowload the rollout helm chart.
    1. Extract the chart and modify the values.yaml change image.repository to your own image registry.Then push it to your helm chart museum.
    2. Modify the addon file change output.properties.url to your chart museum’s url.