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

Rename namespace in demo script launching driver #275

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

klueska
Copy link
Collaborator

@klueska klueska commented Mar 10, 2025

This ensures that the pods for the DRA driver demo are more easily identifiable as opposed to other components.

Copy link

copy-pr-bot bot commented Mar 10, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@klueska
Copy link
Collaborator Author

klueska commented Mar 10, 2025

/ok to test

@@ -24,7 +24,7 @@ source "${CURRENT_DIR}/scripts/common.sh"

kubectl label node -l node-role.x-k8s.io/worker --overwrite nvidia.com/gpu.present=true

helm upgrade -i --create-namespace --namespace nvidia nvidia-dra-driver-gpu ${PROJECT_DIR}/deployments/helm/nvidia-dra-driver-gpu \
helm upgrade -i --create-namespace --namespace nvidia-dra-driver-gpu nvidia-dra-driver-gpu ${PROJECT_DIR}/deployments/helm/nvidia-dra-driver-gpu \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@klueska this isn't a blocker, but why don't we want to use the nvidia namespace here? Is it commonplace to have the deployment and the namespace be the same?

Copy link
Contributor

@jgehrcke jgehrcke Mar 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kevin will provide his reasons for the change.

But I can imagine that it is actually very important to do that from a security point of view:

We start privileged containers and hence want to make sure we run this in a unique namespace, not shared with anything else.

The reason would be to help our users to adopt the principle of least privilege.

The nvidia namespace might maybe be used by other things, and a wider range of users/service accounts might therefore have access to it.

Maybe I am wrong here. But this topic strongly relates to one major TODO item: we need to have a clear stance and simple documentation for a secure deployment of this component (doing great in terms of secure-deployment-documentation is the major outcome of our TAVA process, too).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it' mostly about keeping things namespaces specifically to this component for the demo scripts. In practice, we should recommend people to deploy this in the gpu-operator namespace since the eventual plan is to include it as one of its operands.

@jgehrcke jgehrcke added this to the v25.3.0 milestone Mar 10, 2025
@elezar elezar merged commit 132ae6d into NVIDIA:main Mar 10, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants