feat: add node-feature-discovery and intel-device-plugins

label nodes with features to enable e.g. Intel iGPU support
This commit is contained in:
Vegard Hagen
2024-07-21 23:20:29 +02:00
parent bd7ae1f091
commit ac16aed3d2
8 changed files with 69 additions and 0 deletions
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: intel-device-plugins-gpu
repo: https://intel.github.io/helm-charts/
version: 0.30.0
namespace: intel-device-plugins
releaseName: intel-device-plugins-gpu
includeCRDs: true
valuesFile: values.yaml
@@ -0,0 +1,6 @@
name: igpu
sharedDevNum: 5
enableMonitoring: true
nodeFeatureRule: false
nodeSelector:
intel.feature.node.kubernetes.io/gpu: 'true'
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ns.yaml
- operator
- gpu
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: intel-device-plugins
labels:
pod-security.kubernetes.io/enforce: privileged
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: intel-device-plugins-operator
repo: https://intel.github.io/helm-charts/
version: 0.30.0
namespace: intel-device-plugins
releaseName: intel-device-plugins-operator
includeCRDs: true
@@ -0,0 +1,21 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ns.yaml
# NFD rules for Intel HW
- https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd/overlays/node-feature-rules?ref=v0.29.0
# https://kubernetes-sigs.github.io/node-feature-discovery/v0.16/deployment/helm.html
helmCharts:
- name: node-feature-discovery
repo: https://kubernetes-sigs.github.io/node-feature-discovery/charts
version: 0.16.0
releaseName: nfd
includeCRDs: true
namespace: node-feature-discovery
valuesInline:
worker:
config:
core:
sleepInterval: 0s
@@ -0,0 +1,2 @@
core:
sleepInterval: 0s
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: node-feature-discovery
labels:
pod-security.kubernetes.io/enforce: privileged