You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| "resourceName" | Y | Endpoint resource name. Should not contain special characters, must be unique in the scope of the resource prefix | string | "hca_shared_devices_a" |
112
-
| "rdmaHcaMax" | Y | Maximum number of RDMA resources that can be provided by the device plugin resource | Integer | 1000 |
113
-
| "selectors" | N | A map of device selectors for filtering the devices. refer to [Device Selectors](#devices-selectors) section for more information | json object | selectors": {"vendors": ["15b3"],"deviceIDs": ["1017"]} |
114
-
| "devices" | N | A list of devices names to be selected, same as "ifNames" selector |`string` list |["ib0", "ib1"]|
112
+
| Field | Required | Description | Type | Default value | Example |
| "resourceName" | Y | Endpoint resource name. Should not contain special characters, must be unique in the scope of the resource prefix | string | - | "hca_shared_devices_a" |
115
+
| "resourcePrefix" | N | Endpoint resource prefix. Should not contain special characters | string | "rdma" | "example_prefix" |
116
+
| "rdmaHcaMax" | Y | Maximum number of RDMA resources that can be provided by the device plugin resource | Integer | - | 1000 |
117
+
| "selectors" | N | A map of device selectors for filtering the devices. refer to [Device Selectors](#devices-selectors) section for more information | json object | - | selectors": {"vendors": ["15b3"],"deviceIDs": ["1017"]} |
118
+
| "devices" | N | A list of devices names to be selected, same as "ifNames" selector |`string` list | - |["ib0", "ib1"]|
115
119
116
120
Note: Either `selectors` or `devices` must be specified for a given resource, "selectors" is recommended.
117
121
118
122
## Devices Selectors
119
-
The following selectors are used for filtering the desired devices.
120
123
124
+
The following selectors are used for filtering the desired devices.
The device plugin filters the host devices based on the provided selectors, if there are any missing selectors, the device plugin ignores them. Device plugin performs logical OR between elements of a specific selector and logical AND is performed between selectors.
137
+
138
+
The device plugin filters the host devices based on the provided selectors, if there are any missing selectors, the
139
+
device plugin ignores them. Device plugin performs logical OR between elements of a specific selector and logical AND is
140
+
performed between selectors.
134
141
135
142
# RDMA shared device plugin deployment with node labels
136
143
@@ -139,7 +146,8 @@ RDMA shared device plugin should be deployed on nodes that:
139
146
1. Have RDMA capable hardware
140
147
2. RDMA kernel stack is loaded
141
148
142
-
To allow proper node selection [Node Feature Discovery (NFD)](https://github.com/kubernetes-sigs/node-feature-discovery) can be used to discover the node capabilities, and expose them as node labels.
149
+
To allow proper node selection [Node Feature Discovery (NFD)](https://github.com/kubernetes-sigs/node-feature-discovery)
150
+
can be used to discover the node capabilities, and expose them as node labels.
RDMA device plugin can then be deployed on nodes with `feature.node.kubernetes.io/custom-rdma.available=true`, which indicates that the node is RDMA capable and RDMA modules are loaded.
166
+
RDMA device plugin can then be deployed on nodes with `feature.node.kubernetes.io/custom-rdma.available=true`, which
167
+
indicates that the node is RDMA capable and RDMA modules are loaded.
158
168
159
169
# Docker image
160
-
RDMA shared device plugin uses `alpine` base image by default. To build RDMA shared device plugin with
161
-
another base image you need to pass `BASE_IMAGE` argument:
170
+
171
+
RDMA shared device plugin uses `alpine` base image by default. To build RDMA shared device plugin with another base
0 commit comments