Skip to content
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

Will rancher-vcluster work air-gapped? #4

Open
Martin-Weiss opened this issue Sep 13, 2023 · 2 comments
Open

Will rancher-vcluster work air-gapped? #4

Martin-Weiss opened this issue Sep 13, 2023 · 2 comments

Comments

@Martin-Weiss
Copy link

What will happen if the repos in this yaml are not reachable due to air-gapped?

repo: https://charts.harvesterhci.io

@tserong
Copy link

tserong commented Jan 14, 2025

I gave this a quick test by setting this to a URL I know isn't reachable. It will fail after a few minutes:

image

If you happen to check the logs while it's trying to apply, you'll see something helpful:

# kubectl -n rancher-vcluster logs job/helm-install-rancher-vcluster
[ ... ]
+ helm repo add rancher-vcluster https://192.168.0.44
Error: looks like "https://192.168.0.44" is not a valid chart repository or cannot be reached: Get "https://192.168.0.44/index.yaml": dial tcp 192.168.0.44:443: connect: no route to host

If you don't think to do that, AFAICT the logs will be gone and you'll just have this with no real useful information about what's wrong:

# kubectl -n rancher-vcluster describe jobs/helm-install-rancher-vcluster | tail
[...]
Events:
  Type     Reason                Age    From            Message
  ----     ------                ----   ----            -------
  Normal   SuccessfulCreate      8m58s  job-controller  Created pod: helm-install-rancher-vcluster-p86tc
  Normal   SuccessfulDelete      5m40s  job-controller  Deleted pod: helm-install-rancher-vcluster-p86tc
  Warning  BackoffLimitExceeded  5m40s  job-controller  Job has reached the specified backoff limit

If the various URLs in rancher-vcluster.yaml were pointed to local registries inside the airgap (i.e. Edit the YAML in the Harvester UI), it should work fine.

@Martin-Weiss
Copy link
Author

I guess we need to deliver this helm chart and all yaml as part of our harvester delivery and not rely on sources from the internet - as otherwise the process does not work air-gapped... and we need to add the list of required images to the images.txt and iso?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants