New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disconnected environments #2189
Comments
/assign @amitkrout |
AFAIU odo ideally should work in a disconnected env. You just need push For example:
To make this work it will need an additional setup such as mirroring. For example for nodejs component, env var NPM_MIRROR can be set as an alternate npm registry which can be achieved through Till now i have not verified these steps. I am working on to verify these steps. cc_ @kadel |
i am able to push
|
So t
|
@amitkrout the error you met about "unable to find tag 8 for image nodejs" is due to nodejs imagestream not imported by default in a disconnected cluster, which you can run $oc describe is nodejs -n openshift to check. |
@pmacko1 @kadel How to upload the init image and exporting it through env ODO_BOOTSTRAPPER_IMAGE Method 1 (For a cluster having a mirror registry) : Step 1: Use
Step 2: Copy the disconnect-ca.crt file
Step 3: Execute the command to trust ca in your client platform and login to openshift mirror registry
Step 4: Mirror the odo init image
NOTE: oc image mirror does not recognize tag, so add sha256 sum instead. Step 5: Overwrite init image using environment var ODO_BOOTSTRAPPER_IMAGE
Method 2 (If your cluster allows images to push in the internal cluster registry): Step 1. Enable default route
Step 2. Get wildcard route ca
Step 3: Trust ca in your client platform
Step 4: login to the internal registry
Step 5: Push the init image
Step 6: Overwrite init image using environment var ODO_BOOTSTRAPPER_IMAGE
Secondly create a component and push Nodejs - #2478 (comment) NOTE - Don't use the init image image push steps again you have done it |
|
@kadel As per the cabal discussion i am updating the milestone to 1.2 cc_ @mohammedzee1000 |
This is only a doc change which can be done through async doc update with ocp 4.3, so moving the milestone back to 1.1 cc_ @pmacko1 |
/close |
@amitkrout: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[kind/Enhancement]
Many customers work off line, either due to airgapped work environments or from areas with little or no connectivity. There needs to be a way for these uses to easily use
odo
and the hot reload featured using theodo-init-image
. If this image is held in only a internet accessible way, this will greatly limit the users.The text was updated successfully, but these errors were encountered: