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

Offline support #166

Closed
ibuildthecloud opened this issue Mar 6, 2019 · 5 comments
Closed

Offline support #166

ibuildthecloud opened this issue Mar 6, 2019 · 5 comments
Labels
kind/enhancement An improvement to existing functionality
Milestone

Comments

@ibuildthecloud
Copy link
Contributor

It should be possible to run k3s with no internet access. Image preloading would be the preferred approach right now to getting images, but next what prevents us from offline install is helm and upstream DNS not being configurable.

@ibuildthecloud ibuildthecloud added this to Backlog in K3S Development via automation Mar 6, 2019
@erikwilson erikwilson moved this from Backlog to In progress in K3S Development Mar 18, 2019
This was referenced Mar 18, 2019
@uablrek
Copy link

uablrek commented Mar 25, 2019

With containerd config template support it should be possible to re-direct pulls to a local insecure docker registry, which is really easy to setup. Just specify a mirror for the used registries;

[plugins.opt]
    path = "%OPT%"
[plugins.cri]
  stream_server_address = "%NODE%"
  stream_server_port = "10010"
[plugins.cri.registry.mirrors]
  [plugins.cri.registry.mirrors."docker.io"]
    endpoint = ["http://172.17.0.2:5000"]

I will try this myself as soon as I have learned how to re-build k3s with a PR applied.

@ibuildthecloud ibuildthecloud added this to the v0.3.0 milestone Mar 25, 2019
@erikwilson
Copy link
Contributor

@uablrek This issue is specifically for running air-gap using the images generated for the RC and placing them in the /var/lib/rancher/k3s/agent/images/ directory.

We would like to provide better support for secure private registries but that is a different issue.

@uablrek
Copy link

uablrek commented Mar 25, 2019

Sorry, I thought the "no internet access" was the issue. Then if networking still works a local registry is more flexible than pre-pulled images IMHO. I have a similar problem when working with VMs on my laptop while on mobile internet but I realize this is a different problem.

@erikwilson
Copy link
Contributor

@uablrek running a registry server is probably more overhead than we need for air-gap if we just want to load some pre-saved images into containerd.

@erikwilson erikwilson moved this from In progress to Testing in K3S Development Mar 25, 2019
@erikwilson
Copy link
Contributor

Verified by /issues/172

K3S Development automation moved this from Testing to Done Mar 29, 2019
@erikwilson erikwilson added the kind/enhancement An improvement to existing functionality label Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement An improvement to existing functionality
Projects
No open projects
Development

No branches or pull requests

3 participants