Repository navigation
packages: add dranet - #1077
Open
maherthomsi wants to merge 1 commit into
Open
packages: add dranet#1077maherthomsi wants to merge 1 commit into
maherthomsi wants to merge 1 commit into
Conversation
Add the dranet package, which builds the DRANET network device DRA driver (kubernetes-sigs/dranet) and installs it as a host systemd service and installs it as a host systemd service gated behind settings.kubelet-dra-drivers.net.enabled. Signed-off-by: Maher Homsi <maherhom@amazon.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relies on bottlerocket-os/bottlerocket-settings-sdk#156
Description of changes:
Adds the
dranetpackage, which builds the DRANET network device DRA driver (kubernetes-sigs/dranet,v1.5.0) and installs it as a host systemd service. The package joins the workspace and the kit manifest. Consuming variants can then include it.The service is opt-in and gated on one setting. The unit carries
ConditionFileNotEmpty=/etc/dranet/enabled. Whensettings.kubelet-dra-drivers.net.enabledis true, the marker rendersrun.kubelet-dra-drivers.net.enableddranet.servicerunTwo flags come from settings, and an empty value counts as unset for both, so each falls back to a safe value:
net.bind-address127.0.0.1:9177127.0.0.1:9177net.device-filter--filter, so the driver's own defaultWhen a bind address is blank, Go serves on port 80 of every interface. A blank filter disables filtering, which publishes the secondary ENIs that the Amazon VPC CNI creates and manages. A pod that claims one of those takes pod networking on the node with it. The shipped filter publishes EFA devices only, using the expression the AWS-supported
aws-dranetHelm chart passes.Testing done:
fi_info -p efareported theefaprovider on the allocated device.resource.kubernetes.io/pcieRoot.device-filter.By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.