-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from almaslennikov/examples
Add an example configuration and update README
- Loading branch information
Showing
2 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
docs/examples/example-nicconfigurationtemplate-connectx6.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Change this template first as it only provides an example of configuration | ||
apiVersion: configuration.net.nvidia.com/v1alpha1 | ||
kind: NicConfigurationTemplate | ||
metadata: | ||
name: connectx6-config | ||
namespace: nic-configuration-operator | ||
spec: | ||
nodeSelector: | ||
feature.node.kubernetes.io/network-sriov.capable: "true" | ||
nicSelector: | ||
# nicType selector is mandatory the rest are optional. Only a single type can be specified. | ||
nicType: 101b | ||
pciAddresses: | ||
- "0000:03:00.0" | ||
- “0000:04:00.0” | ||
serialNumbers: | ||
- "MT2116X09299" | ||
resetToDefault: false # if set, template is ignored, device configuration should reset | ||
template: | ||
numVfs: 2 | ||
linkType: Ethernet | ||
pciPerformanceOptimized: | ||
enabled: true | ||
# default values for maxAccOutRead and maxReadRequest listed below, can be omitted | ||
maxAccOutRead: 44 | ||
maxReadRequest: 4096 | ||
roceOptimized: | ||
enabled: true | ||
# default values for qos listed below, can be omitted | ||
qos: | ||
trust: dscp | ||
pfc: "0,0,0,1,0,0,0,0" | ||
gpuDirectOptimized: | ||
enabled: true | ||
env: Baremetal | ||
rawNvConfig: | ||
- name: THIS_IS_A_SPECIAL_NVCONFIG_PARAM | ||
value: "55" | ||
- name: SOME_ADVANCED_NVCONFIG_PARAM | ||
value: "true" |