-
Notifications
You must be signed in to change notification settings - Fork 39.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run nvidia-gpu device-plugin daemonset as an addon on GCE nodes that …
…have nvidia GPUs attached.
- Loading branch information
1 parent
9c7baf9
commit cf29275
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: DaemonSet | ||
metadata: | ||
name: nvidia-gpu-device-plugin | ||
namespace: kube-system | ||
labels: | ||
k8s-app: nvidia-gpu-device-plugin | ||
addonmanager.kubernetes.io/mode: Reconcile | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: nvidia-gpu-device-plugin | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: cloud.google.com/gke-accelerator | ||
operator: Exists | ||
hostNetwork: true | ||
hostPID: true | ||
volumes: | ||
- name: device-plugin | ||
hostPath: | ||
path: /var/lib/kubelet/device-plugins | ||
- name: dev | ||
hostPath: | ||
path: /dev | ||
containers: | ||
- image: "gcr.io/google-containers/nvidia-gpu-device-plugin@sha256:943a62949cd80c26e7371d4e123dac61b4cc7281390721aaa95f265171094842" | ||
command: ["/usr/bin/nvidia-gpu-device-plugin", "-logtostderr"] | ||
name: nvidia-gpu-device-plugin | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 10Mi | ||
securityContext: | ||
privileged: true | ||
volumeMounts: | ||
- name: device-plugin | ||
mountPath: /device-plugin | ||
- name: dev | ||
mountPath: /dev |
This file contains 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
This file contains 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