mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
Merge pull request #57606 from openshift-cherrypick-robot/cherry-pick-56693-to-enterprise-4.13
[enterprise-4.13] OSDOCS-4208: Promote BF2 DPU to NIC mode as GA
This commit is contained in:
@@ -6,17 +6,17 @@
|
||||
[id="proc-switching-bf2-nic_{context}"]
|
||||
= Switching Bluefield-2 from DPU mode to NIC mode
|
||||
|
||||
Use the following procedure to switch Bluefield-2 from data processing units (DPU) mode to network interface controller (NIC) mode.
|
||||
Use the following procedure to switch Bluefield-2 from data processing units (DPU) mode to network interface controller (NIC) mode.
|
||||
|
||||
[IMPORTANT]
|
||||
====
|
||||
Currently, only switching Bluefield-2 from DPU to NIC mode is supported. Switching from NIC mode to DPU mode is unsupported.
|
||||
Currently, only switching Bluefield-2 from DPU to NIC mode is supported. Switching from NIC mode to DPU mode is unsupported.
|
||||
====
|
||||
|
||||
.Prerequisites
|
||||
|
||||
* You have installed the SR-IOV Network Operator. For more information, see "Installing SR-IOV Network Operator".
|
||||
* You have updated Bluefield-2 to the latest firmware. For more information, see link:https://network.nvidia.com/support/firmware/bluefield2/[Firmware for NVIDIA BlueField-2].
|
||||
* You have installed the SR-IOV Network Operator. For more information, see "Installing SR-IOV Network Operator".
|
||||
* You have updated Bluefield-2 to the latest firmware. For more information, see link:https://network.nvidia.com/support/firmware/bluefield2/[Firmware for NVIDIA BlueField-2].
|
||||
|
||||
.Procedure
|
||||
|
||||
@@ -33,7 +33,7 @@ $ oc label node <example_node_name_two> node-role.kubernetes.io/sriov=
|
||||
|
||||
----
|
||||
|
||||
. Create a machine config pool for the SR-IOV Operator, for example:
|
||||
. Create a machine config pool for the SR-IOV Network Operator, for example:
|
||||
+
|
||||
[source,yaml]
|
||||
----
|
||||
@@ -45,10 +45,10 @@ metadata:
|
||||
spec:
|
||||
machineConfigSelector:
|
||||
matchExpressions:
|
||||
- {key: machineconfiguration.openshift.io/role, operator: In, values: [worker,sriov]}
|
||||
- {key: machineconfiguration.openshift.io/role, operator: In, values: [worker,sriov]}
|
||||
nodeSelector:
|
||||
matchLabels:
|
||||
node-role.kubernetes.io/sriov: ""
|
||||
node-role.kubernetes.io/sriov: ""
|
||||
----
|
||||
|
||||
. Apply the following `machineconfig.yaml` file to the worker nodes:
|
||||
@@ -74,22 +74,22 @@ spec:
|
||||
path: /etc/default/switch_in_sriov_config_daemon.sh
|
||||
systemd:
|
||||
units:
|
||||
- name: dpu-switch.service
|
||||
enabled: true
|
||||
contents: |
|
||||
[Unit]
|
||||
Description=Switch BlueField2 card to NIC/DPU mode
|
||||
RequiresMountsFor=%t/containers
|
||||
Wants=network.target
|
||||
After=network-online.target kubelet.service
|
||||
[Service]
|
||||
SuccessExitStatus=0 120
|
||||
RemainAfterExit=True
|
||||
ExecStart=/bin/bash -c '/etc/default/switch_in_sriov_config_daemon.sh nic || shutdown -r now' <1>
|
||||
Type=oneshot
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
- name: dpu-switch.service
|
||||
enabled: true
|
||||
contents: |
|
||||
[Unit]
|
||||
Description=Switch BlueField2 card to NIC/DPU mode
|
||||
RequiresMountsFor=%t/containers
|
||||
Wants=network.target
|
||||
After=network-online.target kubelet.service
|
||||
[Service]
|
||||
SuccessExitStatus=0 120
|
||||
RemainAfterExit=True
|
||||
ExecStart=/bin/bash -c '/etc/default/switch_in_sriov_config_daemon.sh nic || shutdown -r now' <1>
|
||||
Type=oneshot
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
----
|
||||
<1> Optional: The PCI address of a specific card can optionally be specified, for example `ExecStart=/bin/bash -c '/etc/default/switch_in_sriov_config_daemon.sh nic 0000:5e:00.0 || echo done'`. By default, the first device is selected. If there is more than one device, you must specify which PCI address to be used. The PCI address must be the same on all nodes that are switching Bluefield-2 from DPU mode to NIC mode.
|
||||
<1> Optional: The PCI address of a specific card can optionally be specified, for example `ExecStart=/bin/bash -c '/etc/default/switch_in_sriov_config_daemon.sh nic 0000:5e:00.0 || echo done'`. By default, the first device is selected. If there is more than one device, you must specify which PCI address to be used. The PCI address must be the same on all nodes that are switching Bluefield-2 from DPU mode to NIC mode.
|
||||
|
||||
. Wait for the worker nodes to restart. After restarting, the Bluefield-2 network device on the worker nodes is switched into NIC mode.
|
||||
. Wait for the worker nodes to restart. After restarting, the Bluefield-2 network device on the worker nodes is switched into NIC mode.
|
||||
|
||||
@@ -8,12 +8,9 @@ toc::[]
|
||||
|
||||
You can switch the Bluefield-2 network device from data processing unit (DPU) mode to network interface controller (NIC) mode.
|
||||
|
||||
:FeatureName: Switching Bluefield-2 from data processing unit (DPU) mode to network interface controller (NIC) mode
|
||||
include::snippets/technology-preview.adoc[]
|
||||
|
||||
include::modules/proc-switching-bf2-nic.adoc[leveloffset=+1]
|
||||
|
||||
[role="_additional-resources"]
|
||||
.Additional resources
|
||||
|
||||
xref:../../networking/hardware_networks/installing-sriov-operator.adoc#installing-sr-iov-operator_installing-sriov-operator[Installing SR-IOV Network Operator]
|
||||
xref:../../networking/hardware_networks/installing-sriov-operator.adoc#installing-sr-iov-operator_installing-sriov-operator[Installing SR-IOV Network Operator]
|
||||
|
||||
Reference in New Issue
Block a user