From d0d86351c1162dba13b5a4ce7b07658fdb842b35 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Fri, 11 Oct 2024 18:12:26 -0500 Subject: [PATCH] add google coral detection --- .../rules/googlecoral.yaml | 16 ++++++++++++++++ .../node-feature-discovery/rules/nvidia.yaml | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 kubernetes/apps/kube-system/node-feature-discovery/rules/googlecoral.yaml diff --git a/kubernetes/apps/kube-system/node-feature-discovery/rules/googlecoral.yaml b/kubernetes/apps/kube-system/node-feature-discovery/rules/googlecoral.yaml new file mode 100644 index 00000000..c492f9eb --- /dev/null +++ b/kubernetes/apps/kube-system/node-feature-discovery/rules/googlecoral.yaml @@ -0,0 +1,16 @@ +--- +# yaml-language-server: $schema=https://ks.hsn.dev/nfd.k8s-sigs.io/nodefeaturerule_v1alpha1.json +apiVersion: nfd.k8s-sigs.io/v1alpha1 +kind: NodeFeatureRule +metadata: + name: google-coral-device +spec: + rules: + - # Google Coral USB Accelerator + name: google.coral + labels: + google.feature.node.kubernetes.io/coral: "true" + matchFeatures: + - feature: usb.device + matchExpressions: + vendor: {op: In, value: ["1a6e", "18d1"]} diff --git a/kubernetes/apps/kube-system/node-feature-discovery/rules/nvidia.yaml b/kubernetes/apps/kube-system/node-feature-discovery/rules/nvidia.yaml index 354e5f5d..302a4fec 100644 --- a/kubernetes/apps/kube-system/node-feature-discovery/rules/nvidia.yaml +++ b/kubernetes/apps/kube-system/node-feature-discovery/rules/nvidia.yaml @@ -1,5 +1,5 @@ -# yaml-language-server: $schema=https://ks.hsn.dev/nfd.k8s-sigs.io/nodefeaturerule_v1alpha1.json --- +# yaml-language-server: $schema=https://ks.hsn.dev/nfd.k8s-sigs.io/nodefeaturerule_v1alpha1.json apiVersion: nfd.k8s-sigs.io/v1alpha1 kind: NodeFeatureRule metadata: