File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
k8s/magiclove/nvidia_device_plugin Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ import (
4545 mountPath : " /var/lib/kubelet/device-plugins "
4646 }]
4747 imagePullPolicy : v1 .#PullIfNotPresent
48- securityContext : capabilities : add : [" SYS_ADMIN " ]
49- },
5048 // securityContext: {
5149 // capabilities: {
5250 // add: ["SYS_ADMIN"]
@@ -55,22 +53,24 @@ import (
5553 // readOnlyRootFilesystem: true
5654 // allowPrivilegeEscalation: false
5755 // }
58- ]
59- tolerations : [{
60- key : " CriticalAddonsOnly "
61- operator : v1 .#TolerationOpExists
62- }, {
63- key : " nvidia.com/gpu "
64- operator : v1 .#TolerationOpExists
65- effect : v1 .#TaintEffectNoSchedule
56+ securityContext : capabilities : add : [" SYS_ADMIN " ]
6657 }]
58+ nodeSelector : (v1 .#LabelHostname ): " dice "
6759 // securityContext: {
6860 // runAsUser: 1000
6961 // runAsGroup: 3000
7062 // runAsNonRoot: true
7163 // fsGroup: 2000
7264 // seccompProfile: type: v1.#SeccompProfileTypeRuntimeDefault
7365 // }
66+ tolerations : [{
67+ key : " CriticalAddonsOnly "
68+ operator : v1 .#TolerationOpExists
69+ }, {
70+ key : " nvidia.com/gpu "
71+ operator : v1 .#TolerationOpExists
72+ effect : v1 .#TaintEffectNoSchedule
73+ }]
7474 priorityClassName : " system-node-critical "
7575 runtimeClassName : " nvidia "
7676 }
You can’t perform that action at this time.
0 commit comments