From 676f64c76e748280c5119100e2258f4d55b89900 Mon Sep 17 00:00:00 2001 From: Martyn Ranyard Date: Tue, 14 Nov 2023 16:36:44 +0100 Subject: [PATCH] Yoink from myoung Signed-off-by: Martyn Ranyard --- .../node-feature-discovery/kustomization.yaml | 43 +++++++++++++++++++ .../node-feature-discovery/namespace.yaml | 7 +++ everything-app/node-feature-discovery.yaml | 17 ++++++++ 3 files changed, 67 insertions(+) create mode 100644 apps-kustomized/node-feature-discovery/kustomization.yaml create mode 100644 apps-kustomized/node-feature-discovery/namespace.yaml create mode 100644 everything-app/node-feature-discovery.yaml diff --git a/apps-kustomized/node-feature-discovery/kustomization.yaml b/apps-kustomized/node-feature-discovery/kustomization.yaml new file mode 100644 index 0000000..e548a5b --- /dev/null +++ b/apps-kustomized/node-feature-discovery/kustomization.yaml @@ -0,0 +1,43 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: node-feature-discovery + +resources: + - namespace.yaml + +helmCharts: +- name: node-feature-discovery + includeCRDs: true + namespace: node-feature-discovery + releaseName: node-feature-discovery + version: 0.14.3 + repo: https://kubernetes-sigs.github.io/node-feature-discovery/charts + +patches: + - target: + kind: ConfigMap + name: node-feature-discovery-worker-conf + patch: |- + - op: replace + path: /data/nfd-worker.conf + value: |- + sources: + usb: + deviceClassWhitelist: + - "02" + - "08" + - "0e" + - "ef" + - "fe" + - "ff" + deviceLabelFields: + - "class" + - "vendor" + - "device" + pci: + deviceLabelFields: + - "class" + - "vendor" + - "device" + - "subsystem_vendor" + - "subsystem_device" diff --git a/apps-kustomized/node-feature-discovery/namespace.yaml b/apps-kustomized/node-feature-discovery/namespace.yaml new file mode 100644 index 0000000..bc9bcd3 --- /dev/null +++ b/apps-kustomized/node-feature-discovery/namespace.yaml @@ -0,0 +1,7 @@ +--- +kind: Namespace +apiVersion: v1 +metadata: + name: node-feature-discovery + labels: + name: node-feature-discovery diff --git a/everything-app/node-feature-discovery.yaml b/everything-app/node-feature-discovery.yaml new file mode 100644 index 0000000..4589703 --- /dev/null +++ b/everything-app/node-feature-discovery.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: node-feature-discovery + namespace: argocd +spec: + destination: + namespace: node-feature-discovery + server: https://kubernetes.default.svc + project: infra + source: + path: apps-kustomized/node-feature-discovery + repoURL: https://git.martyn.berlin/martyn/infra4talos + targetRevision: HEAD + syncPolicy: + automated: + selfHeal: true