Added support for External Network Operator (ENO) Scenario
[infra/stack/kubernetes.git] / apps / sriov-network-device-plugin / kubespray / playbooks / roles / install / templates / sriov_configMap.yaml.j2
1 # ============LICENSE_START=======================================================
2 #  Copyright (C) 2021 The Nordix Foundation. All rights reserved.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18
19 ---
20 apiVersion: v1
21 kind: ConfigMap
22 metadata:
23   name: sriovdp-config
24   namespace: kube-system
25 data:
26   config.json: |
27     {
28         "resourceList": [{
29                 "resourceName": "virtio_net_device",
30                 "selectors":{
31                     "vendors": ["1af4"],
32                     "devices": ["1000"],
33                     "drivers": ["virtio-pci"],
34                     "pciAddresses": ["0000:00:0a.0", "0000:00:0b.0","0000:00:0c.0","0000:00:0d.0"]
35                 }
36                 }
37         ]
38     }
39