Skip to content

Private registry for an air-gapped install #3616

Discussion options

You must be logged in to vote

UPDATE

This may be the accepted answer, but the solution I proposed is actually not officially supported by K3s. Please see @brandond's answer below: #3616 (comment)

ORIGINAL ANSWER

Try to start/install your k3s server with:

--system-default-registry example.com:5000/some/path

K3s will then download all internal images from this registry. When using the air-gapped bundle, it will even rename the bundled images so it appears like they have been pulled from this registry:

func retagImages(ctx context.Context, client *containerd.Client, images []images.Image, registries []string) error {

Caveats:

  • I could have swor…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
5 replies
@carloscarnero
Comment options

@ChristianCiach
Comment options

@ChristianCiach
Comment options

@carloscarnero
Comment options

@carloscarnero
Comment options

Answer selected by carloscarnero
Comment options

You must be logged in to vote
5 replies
@ChristianCiach
Comment options

@brandond
Comment options

@ChristianCiach
Comment options

@carloscarnero
Comment options

@brandond
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants