first commit
This commit is contained in:
39
templates/nic-nfd-default-rule.yaml
Normal file
39
templates/nic-nfd-default-rule.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
{{- if .Values.installdefaultNFDRule }}
|
||||
apiVersion: nfd.k8s-sigs.io/v1alpha1
|
||||
kind: NodeFeatureRule
|
||||
metadata:
|
||||
name: amd-nic-label-nfd-rule
|
||||
# the PCI info is from these websites:
|
||||
# source1: https://admin.pci-ids.ucw.cz/read/PC/1dd8
|
||||
# source2: https://devicehunt.com/view/type/pci/vendor/1dd8
|
||||
spec:
|
||||
rules:
|
||||
- name: amd-vnic
|
||||
labels:
|
||||
feature.node.kubernetes.io/amd-vnic: "true"
|
||||
matchAny:
|
||||
- matchFeatures:
|
||||
- feature: kernel.loadedmodule
|
||||
matchExpressions:
|
||||
ionic: {op: Exists}
|
||||
- feature: pci.device
|
||||
matchExpressions:
|
||||
vendor: {op: In, value: ["1dd8"]} # AMD Pensando Systems
|
||||
device: {op: In, value: ["1003"]} # DSC Ethernet Controller VF
|
||||
subsystem_vendor: {op: In, value: ["1dd8"]}
|
||||
subsystem_device: {op: In, value: ["5201"]} # POLLARA-1Q400 100/200/400G 1-port Card
|
||||
- name: amd-nic
|
||||
labels:
|
||||
feature.node.kubernetes.io/amd-nic: "true"
|
||||
matchAny:
|
||||
- matchFeatures:
|
||||
- feature: kernel.loadedmodule
|
||||
matchExpressions:
|
||||
ionic: {op: Exists}
|
||||
- feature: pci.device
|
||||
matchExpressions:
|
||||
vendor: {op: In, value: ["1dd8"]} # AMD Pensando Systems
|
||||
device: {op: In, value: ["1002"]} # DSC Ethernet Controller
|
||||
subsystem_vendor: {op: In, value: ["1dd8"]}
|
||||
subsystem_device: {op: In, value: ["5201"]} # POLLARA-1Q400 100/200/400G 1-port Card
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user