$ -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y build-essential linux-headers-$(uname -r)
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y build-essential linux-headers-$(uname -r)
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y build-essential linux-headers-$(uname -r)
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y nvidia-driver-535
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y nvidia-driver-535
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y nvidia-driver-535
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y nvidia-driver-535
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y nvidia-driver-535
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y nvidia-driver-535
-weight: 500;">curl -fsSL [https://nvidia.github.io/libnvidia-container/gpgkey](https://nvidia.github.io/libnvidia-container/gpgkey) | -weight: 600;">sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
-weight: 500;">curl -s -L [https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list](https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list) | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ -weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/nvidia-container-toolkit.list
-weight: 500;">curl -fsSL [https://nvidia.github.io/libnvidia-container/gpgkey](https://nvidia.github.io/libnvidia-container/gpgkey) | -weight: 600;">sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
-weight: 500;">curl -s -L [https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list](https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list) | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ -weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/nvidia-container-toolkit.list
-weight: 500;">curl -fsSL [https://nvidia.github.io/libnvidia-container/gpgkey](https://nvidia.github.io/libnvidia-container/gpgkey) | -weight: 600;">sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
-weight: 500;">curl -s -L [https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list](https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list) | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ -weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/nvidia-container-toolkit.list
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y nvidia-container-toolkit
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y nvidia-container-toolkit
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y nvidia-container-toolkit
-weight: 600;">sudo nvidia-ctk runtime configure --runtime=containerd
-weight: 600;">sudo nvidia-ctk runtime configure --runtime=containerd
-weight: 600;">sudo nvidia-ctk runtime configure --runtime=containerd
-weight: 600;">sudo nano /etc/containerd/config.toml
-weight: 600;">sudo nano /etc/containerd/config.toml
-weight: 600;">sudo nano /etc/containerd/config.toml
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart containerd
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart containerd
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart containerd
-weight: 500;">kubectl create -f [https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.14.4/nvidia-device-plugin.yml](https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.14.4/nvidia-device-plugin.yml)
-weight: 500;">kubectl create -f [https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.14.4/nvidia-device-plugin.yml](https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.14.4/nvidia-device-plugin.yml)
-weight: 500;">kubectl create -f [https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.14.4/nvidia-device-plugin.yml](https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.14.4/nvidia-device-plugin.yml)
-weight: 500;">kubectl get pods -n kube-system -l name=nvidia-device-plugin-ds
-weight: 500;">kubectl get pods -n kube-system -l name=nvidia-device-plugin-ds
-weight: 500;">kubectl get pods -n kube-system -l name=nvidia-device-plugin-ds
-weight: 500;">kubectl describe node <your-node-name> | grep -i [nvidia.com/gpu](https://nvidia.com/gpu)
-weight: 500;">kubectl describe node <your-node-name> | grep -i [nvidia.com/gpu](https://nvidia.com/gpu)
-weight: 500;">kubectl describe node <your-node-name> | grep -i [nvidia.com/gpu](https://nvidia.com/gpu)
apiVersion: v1
kind: Pod
metadata: name: gpu-test-pod
spec: restartPolicy: OnFailure containers: - name: cuda-container image: nvidia/cuda:12.2.0-base-ubuntu22.04 command: ["nvidia-smi"] resources: limits: [nvidia.com/gpu](https://nvidia.com/gpu): 1
apiVersion: v1
kind: Pod
metadata: name: gpu-test-pod
spec: restartPolicy: OnFailure containers: - name: cuda-container image: nvidia/cuda:12.2.0-base-ubuntu22.04 command: ["nvidia-smi"] resources: limits: [nvidia.com/gpu](https://nvidia.com/gpu): 1
apiVersion: v1
kind: Pod
metadata: name: gpu-test-pod
spec: restartPolicy: OnFailure containers: - name: cuda-container image: nvidia/cuda:12.2.0-base-ubuntu22.04 command: ["nvidia-smi"] resources: limits: [nvidia.com/gpu](https://nvidia.com/gpu): 1
-weight: 500;">kubectl apply -f gpu-pod.yaml
-weight: 500;">kubectl apply -f gpu-pod.yaml
-weight: 500;">kubectl apply -f gpu-pod.yaml
-weight: 500;">kubectl logs gpu-test-pod
-weight: 500;">kubectl logs gpu-test-pod
-weight: 500;">kubectl logs gpu-test-pod - Operating System: Ubuntu 22.04 LTS (Jammy Jellyfish).
- Hardware: A bare-metal server with at least one physical NVIDIA GPU attached.
- Access: Root or -weight: 600;">sudo privileges.
- Kubernetes: A running K8s cluster (v1.25+) initialized via kubeadm, k3s, or similar, with the -weight: 500;">kubectl CLI tool configured.
- Container Runtime: containerd installed and running. - Update the Host: Install the proprietary NVIDIA GPU drivers directly on the bare-metal node.
- Install Toolkit: Deploy the NVIDIA Container Toolkit to bridge the GPU with container runtimes.
- Configure Runtime: Modify containerd configurations to recognize the nvidia runtime class.
- Deploy Plugin: Apply the NVIDIA Device Plugin DaemonSet to your K8s cluster.
- Verify: Deploy a test Pod requesting nvidia.com/gpu resources to confirm successful orchestration.