-
Notifications
You must be signed in to change notification settings - Fork 97
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
pass docker registry mirror info from executor to guest vm via MMDS #8389
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall approach looks great 👍 just a few nits
enterprise/server/remote_execution/containers/firecracker/firecracker.go
Outdated
Show resolved
Hide resolved
enterprise/server/remote_execution/containers/firecracker/firecracker.go
Outdated
Show resolved
Hide resolved
enterprise/server/remote_execution/containers/firecracker/firecracker.go
Outdated
Show resolved
Hide resolved
@@ -1452,6 +1458,7 @@ func (c *FirecrackerContainer) getConfig(ctx context.Context, rootFS, containerF | |||
HostDevName: tapDeviceName, | |||
MacAddress: tapDeviceMac, | |||
}, | |||
AllowMMDS: c.vmConfig.InitDockerd, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unused - remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why unused? I think setting AllowMMDS
to true
causes the MMDS configuration handler to run during init.
enterprise/server/remote_execution/containers/firecracker/firecracker.go
Outdated
Show resolved
Hide resolved
enterprise/server/remote_execution/containers/firecracker/firecracker.go
Show resolved
Hide resolved
enterprise/server/remote_execution/containers/firecracker/firecracker.go
Outdated
Show resolved
Hide resolved
enterprise/server/remote_execution/containers/firecracker/firecracker.go
Show resolved
Hide resolved
…cracker.go Co-authored-by: Brandon Duffany <[email protected]>
…cracker.go Co-authored-by: Brandon Duffany <[email protected]>
Co-authored-by: Brandon Duffany <[email protected]>
Co-authored-by: Brandon Duffany <[email protected]>
We'd like to be able to have
dockerd
running inside a Firecracker VM be able to pull images from registry mirrors (and, for tests, be able to pull from insecure registries).This change introduces
executor.firecracker_vm_docker_mirrors
andexecutor.firecracker_vm_docker_insecure_registries
flags. When either is set, the host machine writes their values as JSON and passes that JSON to the VM over the microVM Metadata Service, also known as the Firecracker Metadata API or MMDS.This change bumps the Firecracker guest API version. I'm not sure if that bump is strictly necessary or warranted.