Compare commits
2 Commits
a94bd95248
...
a09333ba38
| Author | SHA1 | Date | |
|---|---|---|---|
| a09333ba38 | |||
| bff6b83d11 |
48
infrastructure/core/gpu/device-plugin-tethys/daemonset.yaml
Normal file
48
infrastructure/core/gpu/device-plugin-tethys/daemonset.yaml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: DaemonSet
|
||||||
|
metadata:
|
||||||
|
name: nvidia-device-plugin-titan24
|
||||||
|
namespace: kube-system
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: nvidia-device-plugin
|
||||||
|
app.kubernetes.io/instance: titan24
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: nvidia-device-plugin
|
||||||
|
app.kubernetes.io/instance: titan24
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: nvidia-device-plugin
|
||||||
|
app.kubernetes.io/instance: titan24
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: titan-24
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
|
tolerations:
|
||||||
|
- operator: Exists
|
||||||
|
priorityClassName: system-node-critical
|
||||||
|
runtimeClassName: nvidia
|
||||||
|
containers:
|
||||||
|
- name: nvidia-device-plugin-ctr
|
||||||
|
image: nvcr.io/nvidia/k8s-device-plugin:v0.16.2
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
args:
|
||||||
|
- "--fail-on-init-error=false"
|
||||||
|
- "--device-list-strategy=envvar"
|
||||||
|
- "--mig-strategy=none"
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
env:
|
||||||
|
- name: NVIDIA_VISIBLE_DEVICES
|
||||||
|
value: "all"
|
||||||
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||||
|
value: "compute,video,utility"
|
||||||
|
volumeMounts:
|
||||||
|
- name: device-plugin
|
||||||
|
mountPath: /var/lib/kubelet/device-plugins
|
||||||
|
volumes:
|
||||||
|
- name: device-plugin
|
||||||
|
hostPath:
|
||||||
|
path: /var/lib/kubelet/device-plugins
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- daemonset.yaml
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
# infrastructure/core/gpu/daemonsets/profiles/tethys-only/kustomization.yaml
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../../device-plugin-tethys
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: node.k8s.io/v1
|
||||||
|
kind: RuntimeClass
|
||||||
|
metadata:
|
||||||
|
name: nvidia
|
||||||
|
handler: nvidia
|
||||||
@ -5,4 +5,5 @@ resources:
|
|||||||
- base
|
- base
|
||||||
# - gpu/profiles/jetson-only
|
# - gpu/profiles/jetson-only
|
||||||
# - gpu/profiles/minipc-and-jetson
|
# - gpu/profiles/minipc-and-jetson
|
||||||
- gpu/profiles/minipc-only
|
# - gpu/profiles/minipc-only
|
||||||
|
- gpu/profiles/tethys-only
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user