Adding node feature discovery and intel drivers

This commit is contained in:
Joseph Hanson 2023-12-02 00:08:55 -06:00
parent 02f5d904d2
commit b524cdd79f
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
9 changed files with 182 additions and 0 deletions

View file

@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: intel-device-plugins-gpu
spec:
interval: 30m
chart:
spec:
chart: intel-device-plugins-gpu
version: 0.28.0
interval: 30m
sourceRef:
kind: HelmRepository
name: intel
namespace: flux-system
values:
name: intel-gpu-plugin
sharedDevNum: 3
nodeFeatureRule: false

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ./nodefeaturerule.yaml

View file

@ -0,0 +1,22 @@
apiVersion: nfd.k8s-sigs.io/v1alpha1
kind: NodeFeatureRule
metadata:
name: intel-dp-gpu-device
spec:
rules:
- labels:
intel.feature.node.kubernetes.io/gpu: "true"
matchFeatures:
- feature: pci.device
matchExpressions:
class:
op: In
value:
- "0300"
- "0380"
- "a7a0"
vendor:
op: In
value:
- "8086"
name: intel.gpu

View file

@ -0,0 +1,43 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &appname intel-device-plugins-operator
namespace: flux-system
spec:
targetNamespace: system
commonMetadata:
labels:
app.kubernetes.io/name: *appname
path: "./kubernetes/apps/system/intel-device-plugins/operator"
sourceRef:
kind: GitRepository
name: valinor
interval: 10m
prune: true
wait: true
dependsOn:
- name: cert-manager
- name: node-feature-discovery
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &appname intel-device-plugins-gpu
namespace: flux-system
spec:
targetNamespace: system
commonMetadata:
labels:
app.kubernetes.io/name: *appname
path: "./kubernetes/apps/system/intel-device-plugins/gpu"
sourceRef:
kind: GitRepository
name: valinor
interval: 30m
prune: true
wait: true
dependsOn:
- name: intel-device-plugins-operator

View file

@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: intel-device-plugins-operator
spec:
interval: 30m
chart:
spec:
chart: intel-device-plugins-operator
version: 0.28.0
interval: 30m
sourceRef:
kind: HelmRepository
name: intel
namespace: flux-system
install:
crds: CreateReplace
upgrade:
crds: CreateReplace

View file

@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml

View file

@ -0,0 +1,37 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: node-feature-discovery
spec:
interval: 30m
chart:
spec:
chart: node-feature-discovery
version: 0.14.3
sourceRef:
kind: HelmRepository
name: kubernetes-sigs-nfd
namespace: flux-system
interval: 30m
install:
crds: CreateReplace
upgrade:
crds: CreateReplace
values:
master:
resources:
requests:
cpu: 21m
memory: 51Mi
limits:
memory: 51Mi
worker:
resources:
requests:
cpu: 5m
memory: 48Mi
limits:
memory: 48Mi

View file

@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml

View file

@ -0,0 +1,19 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &appname node-feature-discovery
namespace: flux-system
spec:
targetNamespace: system
commonMetadata:
labels:
app.kubernetes.io/name: *appname
interval: 10m
path: "./kubernetes/apps/system/node-feature-discovery/app"
prune: true
sourceRef:
kind: GitRepository
name: valinor
wait: true