Open sycbarry opened 5 months ago
@sycbarry The agent installer will actually use the information in your install-config.yaml to extract the base ISO from the container images that are mirrored into your air-gapped/offline environment. The docs do not really cover this at all.
in the install-config.yaml you'll have something like this:
pullSecret: 'my secret'
imageContentSources:
- mirrors:
- privateregistry.com:8443/openshift/release
source: quay.io/openshift-release-dev/ocp-v4.0-art-dev
- mirrors:
- privateregistry.com:8443/openshift/release-images
source: quay.io/openshift-release-dev/ocp-release
When those are present in your install-config.yaml you'll actually be able to see the oc extract subcommands of the agent installer look like this:
level=debug msg=Fetching image from OCP release (oc adm release info --image-for=machine-os-images --filter-by-os=linux/amd64 --insecure=true --icsp-file=/tmp/icsp-file765915509 quay.io/openshift-release-dev/ocp-release@sha256:8032c4248d7ae032d5e79debf975d08683cc34d5f08ab2e937ce2d1e940c007b)
The --iscp-file will cause the oc extract commands to pull the ISO out of your private repo containers and not from the internet.
Added comment: This is really a missing component of the agent installer docs. I've submitted a JIRA to the openshift docs team to address this missing information.
Awesome, I appreciate it Dan.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
Hi!
I just wanted to ask if it would be possible to get insight on how to point the openshift-install cli to use the locally cached .iso image when running
./openshift-install agent create image --dir=.
We basically need to be able to run this command within an air gapped env that has absolutely no access to the internet. We would have the rhcos iso downloaded prior and moved to the private network where we would configure the install-configs from there.
There is no way around this.