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 nvidia-gpu-device-plugin to kvm-nvidia-gpu #19133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilyesAj
Copy link

@ilyesAj ilyesAj commented Jun 24, 2024

related to : #19114

  • deprecated nvidia-gpu-device-plugin and added warning message
  • Added new addon kvm-nvidia-gpu as a replacement of nvidia-gpu-device-plugin

Starting minikube with nvidia-gpu-device-plugin addon:

😄  minikube v1.33.1 on Darwin 12.6
✨  Automatically selected the docker driver. Other choices: virtualbox, ssh
📌  Using Docker Desktop driver with root privileges
👍  Starting "minikube" primary control-plane node in "minikube" cluster
🚜  Pulling base image v0.0.44-1718923403-19112 ...
💾  Downloading Kubernetes v1.30.2 preload ...
    > preloaded-images-k8s-v18-v1...:  319.86 MiB / 319.86 MiB  100.00% 30.60 M
    > index.docker.io/kicbase/bui...:  481.85 MiB / 481.85 MiB  100.00% 20.89 M



❗  minikube was unable to download gcr.io/k8s-minikube/kicbase-builds:v0.0.44-1718923403-19112, but successfully downloaded docker.io/kicbase/build:v0.0.44-1718923403-19112 as a fallback image
🔥  Creating docker container (CPUs=2, Memory=3866MB) ...
🐳  Preparing Kubernetes v1.30.2 on Docker 26.1.4 ...
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...
    ▪ Configuring RBAC rules ...
🔗  Configuring bridge CNI (Container Networking Interface) ...
⌛  The nvidia-gpu-device-plugin addon is deprecated and will be removed in a future release. Please use the kvm-nvidia-gpu addon instead.for more details visit:https://github.com/kubernetes/minikube/issues/19114
🔎  Verifying Kubernetes components...
    ▪ Using image registry.k8s.io/nvidia-gpu-device-plugin
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: storage-provisioner, kvm-nvidia-gpu, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

Starting nvidia-gpu-device-plugin addon after start:

 ./out/minikube-darwin-amd64 addons enable nvidia-gpu-device-plugin                                                (27m) 17:24:38 
⌛  The nvidia-gpu-device-plugin addon is deprecated and will be removed in a future release. Please use the kvm-nvidia-gpu addon instead.for more details visit:https://github.com/kubernetes/minikube/issues/19114
❗  kvm-nvidia-gpu is a 3rd party addon and is not maintained or verified by minikube maintainers, enable at your own risk.
❗  kvm-nvidia-gpu does not currently have an associated maintainer.
    ▪ Using image registry.k8s.io/nvidia-gpu-device-plugin
🌟  The 'kvm-nvidia-gpu' addon is enabled

Starting minikube with kvm-nvidia-gpu addon:

./out/minikube-darwin-amd64 start --addons=kvm-nvidia-gpu                                                         (20m) 17:18:00 
😄  minikube v1.33.1 on Darwin 12.6
✨  Using the docker driver based on existing profile
👍  Starting "minikube" primary control-plane node in "minikube" cluster
🚜  Pulling base image v0.0.44-1718923403-19112 ...
🏃  Updating the running docker "minikube" container ...
🐳  Preparing Kubernetes v1.30.2 on Docker 26.1.4 ...
🔎  Verifying Kubernetes components...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
    ▪ Using image registry.k8s.io/nvidia-gpu-device-plugin
🌟  Enabled addons: kvm-nvidia-gpu, storage-provisioner, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

Starting kvm-nvidia-gpu addon after start:

./out/minikube-darwin-amd64 addons enable kvm-nvidia-gpu                                                          (31m) 17:28:38 
❗  kvm-nvidia-gpu is a 3rd party addon and is not maintained or verified by minikube maintainers, enable at your own risk.
❗  kvm-nvidia-gpu does not currently have an associated maintainer.
    ▪ Using image registry.k8s.io/nvidia-gpu-device-plugin
🌟  The 'kvm-nvidia-gpu' addon is enabled

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 24, 2024
@k8s-ci-robot
Copy link
Contributor

Welcome @ilyesAj!

It looks like this is your first PR to kubernetes/minikube 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/minikube has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 24, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @ilyesAj. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ilyesAj
Once this PR has been reviewed and has the lgtm label, please assign spowelljr for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 24, 2024
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@@ -0,0 +1,64 @@
# Copyright 2018 The Kubernetes Authors All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for pick up this task,
I dont think we need to create a new Addon called KVM-nvidia...we should keep the addon intact, so we dont have to Maintain Two Copy of it.... I was hoping we have a solution that the Old Name still Works

what I had in mind was depreciation in the Flag Name, we already have an example of that

for example,

minikube start --help 
     --vm-driver='':
	DEPRECATED, use `driver` instead.

so we might have to refactor our Adddons package to allow an addon to have Two Names, or allowed it to have a depricated Name and when the user uses the depricated name we encourage them to use the new name.

and by the way this PR should probably Advice the users on the Docker Driver to use the --gpus flag instead

Copy link
Author

@ilyesAj ilyesAj Jun 25, 2024

Choose a reason for hiding this comment

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

@medyagh , thank you for your review, i misunderstood the need. i will try to refactor the work to:

  • make both names working ( the same addon pointing on )
  • deprecate the old one with just notification

for advising users on the docker driver, i double checked and it seems that on the documentation you already recommend that flag : https://minikube.sigs.k8s.io/docs/tutorials/nvidia/#docker

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 10, 2024
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@spowelljr
Copy link
Member

Hi @ilyesAj are you still working on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants