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

Allow container images to be loaded from archives #40

Closed
dancingCamel opened this issue Jan 6, 2023 · 4 comments
Closed

Allow container images to be loaded from archives #40

dancingCamel opened this issue Jan 6, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@dancingCamel
Copy link

dancingCamel commented Jan 6, 2023

In other kubernetes systems we have the to option to load images from archives (such as .tar files exported by docker).
e.g. In KinD we can use "kind load image-archive" and in microk8s there is "microk8s images import".
If we want to create a single deployable bundle to a location then we should be able to load images from archive files.

I would like to have a similar command for AKS-Edge e.g. Import-AksEdgeImage

@fcabrera23 fcabrera23 added the enhancement New feature or request label Jan 6, 2023
@dancingCamel
Copy link
Author

Also, while there isn't a command for doing so, is there another way to load the images, like scp the file into the edge VM and use ctr image import from inside the VM itself?
I tried to find the edge VM with hyper v but couldn't find it, and I tried to ssh into the vm using the IP found at Get-AksEdgeNodeAddr.
This didn't work as I didn't have credentials, and password authentication is disabled on the VM (according to Invoke-AksEdgeNodeCommand -Command "sudo cat /etc/ssh/sshd_config")
I tried to create an ssh key with the invoke command but it just hangs.

@fcabrera23 fcabrera23 self-assigned this Jan 10, 2023
@fcabrera23
Copy link

Hi @dancingCamel,

Thanks for reaching out. We are using SSH over Hyper-V sockets, so normal SSH/SCP won't work. For more information, see #41. We are currently investigating exposing a new PS cmdlet to copy files from/to the Linux/Windows nodes. Once you copied the files, you can use the Invoke-AksEdgeNodeCommand to finalize the import.

Please check our AKS Edge PS in the upcoming updates to get more information.

Thanks,
Francisco

@dancingCamel
Copy link
Author

That's great.
I'll keep an eye on the updates.

Thanks,
Robert

@fcabrera23
Copy link

Hi @dancingCamel

This issue was fixed in the 1.0.266.0 update. Now you can use the Copy-AksEdgeNodeFile and the Invoke-AksEdgeNodeCommand to achieve your scenario.

Thanks,
Francisco

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

No branches or pull requests

2 participants