mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-02 19:08:03 +00:00
feat(gpu): Change from nvidia-gpu-operator to nvidia-device-plugin
The simpler nvidia-device-plugin chart covers my needs and is easier to get working.
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: device-plugin-time-slicing
|
|
||||||
namespace: gpu-operator
|
|
||||||
data:
|
|
||||||
any: |-
|
|
||||||
version: v1
|
|
||||||
flags:
|
|
||||||
migStrategy: none
|
|
||||||
sharing:
|
|
||||||
timeSlicing:
|
|
||||||
resources:
|
|
||||||
- name: nvidia.com/gpu
|
|
||||||
replicas: 10
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
namespace: gpu-operator
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- namespace.yaml
|
|
||||||
- cm-device-plugin-time-slicing.yaml
|
|
||||||
|
|
||||||
helmCharts:
|
|
||||||
- name: gpu-operator
|
|
||||||
repo: https://helm.ngc.nvidia.com/nvidia
|
|
||||||
version: 23.9.0
|
|
||||||
releaseName: "gpu-operator"
|
|
||||||
includeCRDs: true
|
|
||||||
valuesFile: values.yaml
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
driver:
|
|
||||||
enabled: false
|
|
||||||
toolkit:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
devicePlugin:
|
|
||||||
config:
|
|
||||||
name: device-plugin-time-slicing
|
|
||||||
default: any
|
|
||||||
|
|
||||||
#cdi:
|
|
||||||
# enabled: true
|
|
||||||
# default: true
|
|
||||||
12
infra/nvidia-device-plugin/cm-time-slicing.yaml
Normal file
12
infra/nvidia-device-plugin/cm-time-slicing.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: time-slicing
|
||||||
|
data:
|
||||||
|
default: |-
|
||||||
|
version: v1
|
||||||
|
sharing:
|
||||||
|
timeSlicing:
|
||||||
|
resources:
|
||||||
|
- name: nvidia.com/gpu
|
||||||
|
replicas: 10
|
||||||
16
infra/nvidia-device-plugin/kustomization.yaml
Normal file
16
infra/nvidia-device-plugin/kustomization.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: nvidia-device-plugin
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- cm-time-slicing.yaml
|
||||||
|
|
||||||
|
helmCharts:
|
||||||
|
- name: nvidia-device-plugin
|
||||||
|
repo: https://nvidia.github.io/k8s-device-plugin
|
||||||
|
version: 0.14.2
|
||||||
|
releaseName: "nvidia-device-plugin"
|
||||||
|
namespace: nvidia-device-plugin
|
||||||
|
includeCRDs: true
|
||||||
|
valuesFile: values.yaml
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: gpu-operator
|
name: nvidia-device-plugin
|
||||||
3
infra/nvidia-device-plugin/values.yaml
Normal file
3
infra/nvidia-device-plugin/values.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
config:
|
||||||
|
name: time-slicing
|
||||||
|
default: default
|
||||||
@@ -24,6 +24,8 @@ spec:
|
|||||||
server: '*'
|
server: '*'
|
||||||
- namespace: 'monitoring'
|
- namespace: 'monitoring'
|
||||||
server: '*'
|
server: '*'
|
||||||
|
- namespace: 'nvidia-device-plugin'
|
||||||
|
server: '*'
|
||||||
- namespace: 'pi-hole'
|
- namespace: 'pi-hole'
|
||||||
server: '*'
|
server: '*'
|
||||||
- namespace: 'net-aux'
|
- namespace: 'net-aux'
|
||||||
@@ -34,4 +36,4 @@ spec:
|
|||||||
server: '*'
|
server: '*'
|
||||||
clusterResourceWhitelist:
|
clusterResourceWhitelist:
|
||||||
- group: '*'
|
- group: '*'
|
||||||
kind: '*'
|
kind: '*'
|
||||||
|
|||||||
Reference in New Issue
Block a user