Skip to content

Commit 10a3d59

Browse files
committed
chore(k8s/magiclove/nvidia-device-plugin): add node selector
1 parent 511f422 commit 10a3d59

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

k8s/magiclove/nvidia_device_plugin/daemon_set_list.cue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)